Try this:
$('.datepicker').datepicker({
dateFormat: 'yy-mm-dd',
onSelect: function(dateText, inst) {
var dt = new Date();
var time = dt.getHours() +':'+ dt.getMinutes() +':'+
dt.getSeconds();
$(this).val(dateText + ' ' + time);
}
});
You won't be able to do anything fancy with the time but at least this gives
you the ISO format.
On Thu, Jul 9, 2009 at 11:29 PM, Psyclo <[email protected]> wrote:
>
> I see posts from over a year ago about adding time to the datepicker
> widget. I'd really like to be able to use datepicker in my
> application, but I really need to have the full ISO format, "YYYY-MM-
> DD HH:MM:SS". I also saw that some people were writing their own time
> extensions, but is anyone doing development on datepicker to add time
> functionality to it directly?
>
> Thanks in advance.
>
> >
>
--
Ca-Phun Ung
+ http://yelotofu.com
+ hongkong, zce, jquery, jqueryui, php, css, html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" 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/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---