Hello Community,

Finally i have got one jquery based calendar.

http://jqueryui.com/docs/Getting_Started

how to from this site:

<input type="text" name="date" id="date" />

*JS:*

$('#date').datepicker();

My current code to select date with form helper is:

echo $this->Form->create(array('controller' => 'users', 'action' => 'view'));
echo $this->Form->input('StartDate', array(
    'type' => 'datetime',
    'dateFormat' => 'DMY',
    'minYear' => date('Y'),
    'maxYear' => date('Y'),
    'timeFormat' => '24',
    'selected' => date('Y-m-d 0:00:s'),
    'attributes' => array(),
    'empty' => FALSE
        )
);
echo $this->Form->input('EndDate', array(
    'type' => 'datetime',
    'dateFormat' => 'DMY',
    'minYear' => date('Y'),
    'maxYear' => date('Y'),
    'timeFormat' => '24',
    //'selected' => null,
    'selected' => date('Y-m-d H:i:s'),
    'attributes' => array(),
    'empty' => FALSE
        )
);
echo $this->Form->end('Search');


Can anyone suggest how to use jave script calendar under form-create-input?

Please suggest.

Regards
Tapan Thapa
India



On Tue, Feb 22, 2011 at 12:46 PM, andy_the ultimate baker <
[email protected]> wrote:

> u cant expect all that u need will get exactly.
> u need to change the format in its code.
> have u tried the options at the right side of page ?
> and bellow it the possible changes and functions are given just refer
> them.
>
> Anand
> cake developer
> www.anshusys.com.
>
> On Feb 22, 12:01 pm, Tapan Kumar Thapa
> <[email protected]> wrote:
> > I have seen this web site but i think your suggested calendar does not
> > provide seconds in calendar. Does it?
> >
> > Regards
> > Tapan Thapa
> > India
> >
> > On Tue, Feb 22, 2011 at 12:25 PM, andy_the ultimate baker <
> >
> > [email protected]> wrote:
> > > hi tapan,
> > > this is the most light weight date picker with variety of option.
> >
> > > get this link
> >
> > >http://jqueryui.com/demos/datepicker
> >
> > > hope this may help u.
> >
> > > regards
> >
> > > Anand
> > > cake developer
> > >www.anshusys.com.
> >
> > > On Feb 22, 11:18 am, Walther <[email protected]> wrote:
> > > > This is the one I use:http://tinyurl.com/6g2xokx
> >
> > > > It is incredibly powerful!
> >
> > > > On Feb 21, 5:58 pm, Tapan Kumar Thapa <
> [email protected]>
> > > > wrote:
> >
> > > > > Hello Community,
> >
> > > > > Can anyone suggest good light weight (with minimum configuration)
> > > calendar
> > > > > picker which should have hour, min and seconds feature?
> >
> > > > > Regards
> > > > > Tapan Thapa
> > > > > India
> >
> > > --
> > > Our newest site for the community: CakePHP Video Tutorials
> > >http://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > > others with their CakePHP related questions.
> >
> > > To unsubscribe from this group, send email to
> > > [email protected] For more options, visit this
> group
> > > athttp://groups.google.com/group/cake-php
>
> --
> 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
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to