valid_date[d/m/Y] doesn't validate year properly |
I am trying to validate a date field using validation rules
Code: 'date' => 'required|valid_date[d/m/Y]' Shouldn't it be according to "Y" validation of a full year like 1995 or 2022?
Year 0 and Year 9999 are valid year.
Thanks, I agree with that.
Any suggestions how to limit the year to let's say 2000? Unless I create my own custom date validation.
Didn't look at it closely but it would be trivial to implement a custom validation method. You can check the documentation for an example.
Practical guide to IgnitedCMS - Book coming soon, www.ignitedcms.com
|
Welcome Guest, Not a member yet? Register Sign In |