Hi,
For the DateTimePicker, I set the TimeView.StartTime and TimeView.EndTime in the code behind.
When the Time selection is actually a time from yesterday, upon selection, today's date is put in the TextBox.
So if the time 23:30 is in the TimeView and 23:30 is actually 23:30 on 10/04 (and today is 10/05).
Upon selection it shows as 10/05/11 23:30 instead of 10/04/2011 23:30.
In debug mode, when i check the value of the StartTime and EndTime they are clearly separate days, but it doesn't carry over to the front-end functionality.
Does RadDateTimePicker support days that aren't today???
Thanks,
For the DateTimePicker, I set the TimeView.StartTime and TimeView.EndTime in the code behind.
When the Time selection is actually a time from yesterday, upon selection, today's date is put in the TextBox.
So if the time 23:30 is in the TimeView and 23:30 is actually 23:30 on 10/04 (and today is 10/05).
Upon selection it shows as 10/05/11 23:30 instead of 10/04/2011 23:30.
In debug mode, when i check the value of the StartTime and EndTime they are clearly separate days, but it doesn't carry over to the front-end functionality.
Does RadDateTimePicker support days that aren't today???
int
nStartMinute = now.Minute / 15 * 15;
radFaultDateTime.TimeView.StartTime =
new
TimeSpan(now.Subtract(
new
TimeSpan(14, 0, 0)).DayOfYear, now.Subtract(
new
TimeSpan(14, 0, 0)).Hour, nStartMinute, 0);
radFaultDateTime.TimeView.EndTime =
new
TimeSpan(now.Add(
new
TimeSpan(2, 0, 0)).DayOfYear, now.Add(
new
TimeSpan(2, 0, 0)).Hour, nStartMinute, 0);
radFaultDateTime.TimeView.Interval =
new
TimeSpan(1, 0, 0);
radFaultDateTime.ShowPopupOnFocus =
true
;
Thanks,