I am using CakePHP 1.3 to create a select menu for date of birth (as below). I can set the default starting values as either blank or a selected date, but ideally I would like to have DD-MM-YYYY as the starting displayed values:
echo $form->input('dob', array( 'before' => '', 'between' => '', 'after' => '', 'label' => false, 'divider' => false, 'monthNames' => false, 'selected' => false, 'empty' => true, 'dateFormat' => 'DMY', 'minYear' => date('Y') - 70, 'maxYear' => date('Y') - 16, 'error' => array('wrap' => 'div', 'class' => 'error-copy') ));
What I get:
What I would like:
Thank you