Yii2. Date validation rule wrong format

553 views Asked by At

I have such validation rule

['birthdate', 'date', 'format' => 'Y-m-d'],

and passing such value 2002-03-11, but recive validation error The format of Birthdate is invalid.

What am I doing wrong?

1

There are 1 answers

1
D.R. On BEST ANSWER

I have installed intl extenstion. It has fixed an issue.