yii2 - How to set date format when using datepicker to save data? -
i use datepicker widget select data save. in model have rule date
'date', 'format' => 'd.m.y'
in widget have option
'format' => 'dd.mm.yyyy'
when edit date looks dd.mm.yyyy, after save changes mm.dd.yyyy , because of can't choose date day bigger 12. how fix it?
Comments
Post a Comment