D
D
des1roer2015-03-05 13:22:07
Yii
des1roer, 2015-03-05 13:22:07

Yii date field validation?

I'm trying to make such a check
array('e_date_start,e_date_repair_start', 'date' , 'format'=>'dd.MM.yyyy H:i:s'),
03/02/2015 00:00:00
Wrong format of the registration date field .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
idencial, 2016-03-15
@des1roer

The format of how to check is based on CDateTimeParser
www.yiiframework.com/doc/api/1.1/CDateTimeParser
Your format is based on the PHP format, which is why it gives an incorrect format error
So the vyachin advice is not correct, link to the PHP manual off topic here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question