samedi 28 mars 2015

Ignore hour and minute selectors in form input in CakePHP (2.6.x)

How can I tell CakePHP to only show day, month and year and set hour, minute and second to 00 by default?



echo $this->Form->input('date', array('dateFormat' => 'DMY', 'timeFormat' => 24));


CakePHP always creates this form-input but I am not interested in hours, minutes and seconds:


enter image description here


Aucun commentaire:

Enregistrer un commentaire