Changing the Default Value of a Date-Time Input
Copy this code and paste it in your HTML
<?php
echo $form->input('fecha', array('selected' => array('day' => '1', 'month' => '1', 'year' => '', 'hour' => '1', 'minute' => '1', 'second' => '0', 'meridian' => 'pm'))); ?>
Report this snippet
Comments
Subscribe to comments