Hi,
I want to change the default value of the selected date input
generated by $form->input('some_date'). For example "January 01, 2008"
instead of current date.
I found a link how to change it, here
http://mikebernat.com/blog/CakePHP_-_Changing_the_Default_Value_of_a_Date-Time_Input.
But it is not working.
Here is my code:
echo $form->input('dispatch_date', array('selected' => array(
'month' => date('m', strtotime($order['Order']['shipment_date'])),
'year' => date('Y', strtotime($order['Order']['shipment_date'])),
'day' => date('d', strtotime($order['Order']['shipment_date'])),
)
)
);
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---