The main thing you normally want to know is how to set the date format and the year input range. When you have a field like date of birth you would normally want to allow users to register that is younger than 100 years. I personally have not met anyone that is 100 years old, not even to mention someone that is 100 years old that uses the internet.
Unless you are running some sort of mortuary system this should suffice.
The two options you are looking for is dateFormat and minYear
This example also demonstrates the use of the multi-language built into CakePHP.
$this->Form->input('dob',array('label'=>__('DATE_OF_BIRTH',true),'type'=>'date','dateFormat'=>'DMY','minYear'=>(date('Y')-100),'class'=>'select-text'))
Valid date formats
By PHPin24 @ 2011-09-06 18:25:00
|