Thanks Jeremy,
It worked fine! :)
On Jun 29, 4:05 pm, Jeremy Burns | Class Outfit
wrote:
> Try this in your form:
>
> echo $this->Form->input(
> 'dob',
> array(
> 'label' => 'Date of Birth',
> 'empty' => true,
> 'timeFormat' => '',
Try this in your form:
echo $this->Form->input(
'dob',
array(
'label' => 'Date of Birth',
'empty' => true,
'timeFormat' => '',
'minYear' => (
date('Y') - 5
),
'ma
Hi
I have a date selection box for DOB field(the default one provided by
cakephp) which has 3 combo boxes for date, month and year
respectively.
How do I get the year combo box to display a year range ie. I want it
to display the years between (current year - 2)and (current year - 5).
since i'm