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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -