Senario:
i have a Raddatetimepicker that has a format "dd/MM/yyyy HH:mm" in serverside pageload then assign the present date to it. Example December 2 ,2009 7:30 am the display is "02/12/2009 07:30". Every 15 seconds it would update its time. I have a java script that triggers ClientEvents-OnLoad = OnDtpLoad
the javascript would look like this:
function OnDtpLoad(){
var
dtpTime = $find("<%=RadDateTimePicker.ClientID%>");
var updateDate = new Date();
dtpTime.set_selectedDate(updateDate );
var
t = setTimeout(OnDtpLoad()', 15000);
}
this function would trigger ever 15 seconds to update the datepicker.
Problem:
if you look at it, you would expect that the datepicker display would be "02/12/2009 07:30" but instead it display this "12/02/2009 07:30". with a value of Febuary 12, 2009 7:30 am..
Why is this so??? I have tried formating the date in javascript but it will return Febuary.
if you would do this:
dtpTime.set_selectedDate(dtpTime.get_selectedDate());
the display would be first December next update would be Febuary then December then Febuary and so on..
.........
I think is because of the Format dd/mm/yyyy since in the format mm/dd/yyyy the display is OK.....
Please help...
I'm using Q1 2009 and I'm in a country where the format is mm/dd/yyyy but i need the format dd/mm/yyyy