SEt an option called 'dateFormat' with one of the following values:
'DMY', 'MDY', 'YMD' or 'NONE'.

For more information see the dateTime method in the Form helper
[ 
http://api.cakephp.org/1.2/class_form_helper.html#363d9dcc25f7cd0624d3dc8f4254df34
]

On Jul 19, 3:22 pm, Braindead <[EMAIL PROTECTED]> wrote:
> I'm using Cake 1.2 and want to display some selects for date input.
> This is my code:
>
> <?php echo $form->input('User.birthday', array('type' => 'date',
> 'label' => 'Birthday', 'empty' => true, 'minYear' => date('Y')-60,
> 'maxYear' => date('Y')-15)); ?>
>
> Is it possible to tell Cake to display the fields in DMY order instead
> of MDY?
>
> According to the API it seems to be fixed to MDY. Is that true? Are
> there plans to make the date format flexible?
>
> Regards,
> Brain
> ----------http://braindead1.de- my german blog


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to