Hi there.
Unsure if I'm missing something here.
I have a RadDatePicker on my form.
The user enters a date (e.g. 6th June 2009)
When I attempt to get the date from this combox box in Javascript, (using get_selectedDate()) I'm returned a DateTime of... 5th June 2009 11:00pm
Given we'e in Daylight Savings at the moment, I can see what's happening: It's applying the local TimezoneOffset to the date in the control to convert to GMT (if i do get_selectedDate().getTimezoneOffset() I get -60)
So why is this happening, and what can I do to stop it?
If a user chooses 6th June 2009 in the date picker, then I expect to get 6th June 2009 when i get the selected date in Javascript!
ASPX code for control is here:
<telerik:RadDatePicker
ID="txtDate"
runat="server"
TabIndex="2"
AccessKey="t"
Width="220px"
MaxLength="10"
ToolTip="Enter a Date"
Skin="Default"
ClientEvents-OnDateSelected="txtDate_OnDateSelected" />
Thanks!
Daniel.
Unsure if I'm missing something here.
I have a RadDatePicker on my form.
The user enters a date (e.g. 6th June 2009)
When I attempt to get the date from this combox box in Javascript, (using get_selectedDate()) I'm returned a DateTime of... 5th June 2009 11:00pm
Given we'e in Daylight Savings at the moment, I can see what's happening: It's applying the local TimezoneOffset to the date in the control to convert to GMT (if i do get_selectedDate().getTimezoneOffset() I get -60)
So why is this happening, and what can I do to stop it?
If a user chooses 6th June 2009 in the date picker, then I expect to get 6th June 2009 when i get the selected date in Javascript!
ASPX code for control is here:
<telerik:RadDatePicker
ID="txtDate"
runat="server"
TabIndex="2"
AccessKey="t"
Width="220px"
MaxLength="10"
ToolTip="Enter a Date"
Skin="Default"
ClientEvents-OnDateSelected="txtDate_OnDateSelected" />
Thanks!
Daniel.