It is possible, you misread what speccy was saying.  Use what you have
and add a dateFormat key in the options array like

<?php echo $form->input('User.birthday', array('type' => 'date',
'label' => 'Birthday', 'empty' => true, 'minYear' => date('Y')-60,
'maxYear' => date('Y')-15, 'dateFormat' => 'DMY')); ?>

Also what if I 61 this year?  I hope the site is targetted at a young
audience :)

Geoff
--
http://lemoncake.wordpress.com

On Jul 20, 3:39 am, Braindead <[EMAIL PROTECTED]> wrote:
> I want to use $form->input with the type set to 'date'. The advantage
> is, that it generates the select fields AND a label for the fields.
> $form->dateTime does not generate the label.
>
> My problem is, that I want to change the dateFormat to DMY. But I
> think this is not possible, because the dateFormat is fixed. Is there
> any chance to change the format?


--~--~---------~--~----~------------~-------~--~----~
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