Looking through the source the options are generated with
case 'month':
01343 for ($i = 1; $i <= 12; $i++) {
01344 $data[sprintf("%02s", $i)] = strftime("%B",
mktime(1,1,1,$i,1,1999));
01345 }
So look slike you are out of luck on generating numbered months with
dateTime(). You can always set the locale to generate other language
month names. Otherwise I think it is manual date selects or a
javascript date picker.
Geoff
--
http://lemoncake.wordpress.com
On Jul 16, 12:03 pm, burzum <[EMAIL PROTECTED]> wrote:
> How can i get $form->dateTime() to use a number instead of english
> month names!?
>
> I don't get it.... :(
>
> And i have this <?php echo $form->dateTime('Event/enddate','DMY',
> 24,null,array(),true)?> and when i submit the form and theres a
> validation error (in another field), the date fields do not stay
> empty, why!? The date should be optional for the user, he could leave
> it empty.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---