Re: how to get date select box to display a year range

2011-06-29 Thread varai
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' => '',

Re: how to get date select box to display a year range

2011-06-29 Thread Jeremy Burns | Class Outfit
Try this in your form: echo $this->Form->input( 'dob', array( 'label' => 'Date of Birth', 'empty' => true, 'timeFormat' => '', 'minYear' => ( date('Y') - 5 ), 'ma

how to get date select box to display a year range

2011-06-29 Thread varai
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