Hi everybody,
I'm searching for a day how format a date field from Mysql (YYYY-MM--
DD) to 3 form's selects:
- date from mysql : 2008-04-23
- my form fields are build like this:
for ($i=0;$i<11;$i++) {
$form->day('DixDate.'.$i.'.date',null,array('id'=>'date-sel'.$i.'-
dd')).'-'.
$form->month('DixDate.'.$i.'.date',null,array('id'=>'date-sel'.$i.'-
mm')).'-'.
$form->year('DixDate.'.$i.'.date','1900',$current_year,null)
}
I'm using "day", "month", "year" instead of "input()" because I'm
using a date picker that is need a special DOM id to work.
How can I pass the day value, the month value and year value for each
field?
Must I do a "substr()" on each of my date?
I hope my message is understandable...
Thanks for help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---