i am using a custom appointment form. all works well when i insert a new event. however, if i try to modify an event, i am not able to obtain the time from the control. it puts it at 12:00:00.
<telerik:radscheduler id="RadScheduler1" runat="server" Skin="WebBlue" Height="460px"
OnAppointmentDelete="RadScheduler1_AppointmentDelete" StartEditingInAdvancedForm="false" OnAppointmentCreated="RadScheduler1_AppointmentCreated"
<asp:Label runat="server" ID="lblEventName" />
It is this line of code that causes the problem:
"#" & Format(StartDate.SelectedDate, "MM/dd/yyyy")
startTimeString = StartTime.SelectedDate.Value.ToShortTimeString &
CDate(startDateString & " " & startTimeString)
As an example, I inserted an appointment then tried to change the date from 6/1 4:45pm to 6:15pm to: 6/3 5:00pm to 7:00pm. I changed the information on my screen and clicked 'Update'. Here are the values of the above:
startDateString = "#06/03/2010"
startTimeString = "12:00 AM#" HERE IS THE PROBLEM. Why is this not returning my time??? It works fine on the insert.
Thanks and let me know if you need additional information.