You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This rule should be able to check if an input is a date and (optionally) check if the date is between or later/earlier than other dates.
Example Code
[
'date' => [
[
'rule' => 'date',
'formats' => [ 'Y-m-d', 'd.m.Y' ],
'message' => 'Please provide a real date'.
'min' => [
'date' => date('Y-m-d'),
'message' => 'The selected date must be after today'
],
'max' => [
'date' => '2018-12-01',
'message' => 'The selected date cant be next year'
]
]
]
]
The text was updated successfully, but these errors were encountered:
Description
This rule should be able to check if an input is a date and (optionally) check if the date is between or later/earlier than other dates.
Example Code
The text was updated successfully, but these errors were encountered: