0

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?

D.R.
  • 2,540
  • 3
  • 24
  • 49

1 Answers1

2

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

D.R.
  • 2,540
  • 3
  • 24
  • 49
  • @ShaigKhaligli actually, not. Inside the Yii2 Date core validator was if this extension installed and else with some code and this part gave an error. – D.R. Dec 25 '16 at 17:34