valid_date not working as expected |
I'm trying to validate this date: 14/04/2021 16:00, so inside the validation rules of the controller I did:
PHP Code: $validationRules = [ the problem's that when the code reach this line: PHP Code: if (!$this->validate($validationRules)) { The field published_date must contains a valid date
you have to use i for minute (d/m/Y H:i).
more info: https://www.php.net/manual/en/datetime.format.php |
Welcome Guest, Not a member yet? Register Sign In |