DatePicker in 24h format?

56 views
Skip to first unread message

obeewan

unread,
Apr 2, 2009, 12:54:16 PM4/2/09
to Clientcide
Hi there.

Is it possible to use the Datepicker with the option time: true to
show the time selection in a 24h format?
I checked the docs but found nothing regarding this.

Best regards,
Henrik

epsi nurwijayadi

unread,
Nov 15, 2009, 11:23:01 AM11/15/09
to obeewan, clien...@googlegroups.com
Apologize for waking up old thread.
How do I?
- have selection in 24h format
- type time as 00:00 instead of 12:00

I've dug
http://www.clientcide.com/docs/Forms/DatePicker
and also found nothing.

I know there's a lot of cool DatePicker out there.
But clientcide bundle is too good to be changed.

Official improvement support would be great.
Any clue is appreciated.

Best regards,
~epsi

:: iluni.org :: Joomla 1.5 with Mootools 1.2 ShowCase :: extensions is
shareable

Zach Gambino

unread,
Nov 15, 2009, 11:52:24 AM11/15/09
to clien...@googlegroups.com
Theoretically, all you have to do it set the time format before you
initialize the DatePicker instance by running:
Date.defineFormat('time', '%H:%M');
The global format options in the Date class affect the output of DatePicker.
~Zach
> --
>
> You received this message because you are subscribed to the Google Groups "Clientcide" group.
> To post to this group, send email to clien...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/clientside?hl=.
>
>
>

Aaron Newton

unread,
Nov 16, 2009, 1:40:36 PM11/16/09
to clien...@googlegroups.com
In theory, this should work, though I can't say for sure it will as I haven't tried it.

I will confess that I'm not in love with the date picker class and I haven't spent any time on it in a while. If you guys want more functionality out of it, fork it on github and hack away, then send me a pull request and, if it looks good, I'll release it.

epsi nurwijayadi

unread,
Nov 17, 2009, 3:47:10 PM11/17/09
to Clientcide
Thank you so much Aaron,

I'm also thinking about changing code in your class.

Off course it would take time, and test time,
for ordinary coder like me.

But I really glad for your encouragement.
It open my mind that actually we can get involved in your project.

~epsi - dunno if my english is acceptable

On 16 Nov, 13:40, Aaron Newton <aa...@iminta.com> wrote:
> If you guys want more functionality out of
> it, fork it on github and hack away,
>
> On Sun, Nov 15, 2009 at 8:52 AM, Zach Gambino <zach.gamb...@gmail.com>wrote:
>
> > Theoretically, all you have to do it set the time format before you

> > Date.defineFormat('time', '%H:%M');

> > ~Zach

Aaron Newton

unread,
Nov 17, 2009, 4:08:50 PM11/17/09
to clien...@googlegroups.com
If possible, try and do your work on github so I can easily pull it in. If you can't do that, just post your changes anywhere and I'll manage it.

Reply all
Reply to author
Forward
0 new messages