Thursday, October 29, 2009

Re: Problem with DATE.

Using the form-helper, change the input for the date to:

$form->input('date', array('minYear' => 1950)).

When the input is for something like a birthday, you can also add a
'maxYear' => 2000 or something to that last array since obviously
nobody born in 2029 will be using your site now. :)

On 29 okt, 05:45, Jiru <jiransl...@gmail.com> wrote:
> Hii Programmers ,
>
> In cakephp when I use DATE field it displays the dropdown list with
> year limit 1989-2029  how can we get the date from 1950?
>
> regards,
>                     jiru
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: