Answer the question
In order to leave comments, you need to log in
How to make a validation for the entered date so that it is no later than the current day?
The model has an attribute "birthday". How can I use the built-in validator to check that when editing a profile it is impossible to set the date of birth later than the current day?
Answer the question
In order to leave comments, you need to log in
['birthday', 'date', 'max' => time(), 'tooBig' => 'Дата рождения должна быть не меньше текущей даты'],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question