Changing the Default Value of a Date-Time Input


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. echo $form->input('fecha', array('selected' => array('day' => '1', 'month' => '1', 'year' => '', 'hour' => '1', 'minute' => '1', 'second' => '0', 'meridian' => 'pm')));
  3. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.