Hi

use this it will work

$date_time = date('Y-m-d H:i:s');

all the best

On Wed, Apr 13, 2011 at 3:35 AM, Ryan Schmidt <google-2...@ryandesign.com>wrote:

> I think he doesn't want multiple inputs; he wants a single text input field
> containing the entire date/time string.
>
> On Apr 12, 2011, at 03:16, Jens Dittrich wrote:
>
> > yes, possible. If you have a look in the documentation you will find
> > that you can tell each input what type it should be. So in your case
> > you would have to give it the option 'type' => 'text' in the options
> > array().
> >
> > On 12 Apr., 06:29, jackgoh wrote:
> >>
> >> When we use DateTime as data type, cakephp will auto generate dropdown
> >> lists, but i want it display in textbox.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Master Ram.
Founder n Director of rgPlanets Pvt. Ltd.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to