Jump to content
Larry Ullman's Book Forums

Date Format


Recommended Posts

Dear all,


I follow the yii book until chapter 5. I got no problem until I reach page 94 and I add this code:


# protected/models/Page.php::rules()    


array('date_published', 'date', 'format'=>'YYYY-MM-DD'),    


I got error while opening create Page:


Please fix the following input errors:

  • The format of Date Published is invalid.


When I type 2013-04-05.


Is there something wrong?

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...

  • Create New...