Hi everyone,
If found something strange about the way setDate behaves when passing a date object in parameter.
I use the fonction like this:
var date = new Date();
alert(date); // Tue Aug 25 2009 16:58:26 CTU+0800
$('#datepicker).datepicker('setDate', date);
alert(date); // Tue Aug 25 2009 16:58:57 CTU+0800
Why does the setDate function modifies the date object? Is this normal?
How to modifiy format of the date ,eg 'yy-MM-dd'?
I didn't find anything about this subject on the website.
Thanks a lot
If found something strange about the way setDate behaves when passing a date object in parameter.
I use the fonction like this:
var date = new Date();
alert(date); // Tue Aug 25 2009 16:58:26 CTU+0800
$('#datepicker).datepicker('setDate', date);
alert(date); // Tue Aug 25 2009 16:58:57 CTU+0800
Why does the setDate function modifies the date object? Is this normal?
How to modifiy format of the date ,eg 'yy-MM-dd'?
I didn't find anything about this subject on the website.
Thanks a lot