Hi,

There are 3 methods for this

First is to pass selected value as an array like this

array(
 'day' => 13,
 'month' => 1,
 'year' => 2011,
);

Second one is to use string like 2011-01-13.

And third one is use timestamp generated by mktime() or time() etc.
functions.

Hope this helps.

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Thu, Jan 13, 2011 at 11:31 AM, Miqdad Ali <[email protected]>wrote:

> how to use selected date in
>
>  $form->input('dt',array('type'=>'date'));
> --------------------------------------------------------------------
> Miqdad Ali
> http://www.miqdadali.co.cc
>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to