In my SharePoint 2010 visual web part I have two SharePoint DateTime Picker controls, which is used to add new appointment to the appointment schedule calendar. Here one datetime picker control is for AppointmentStart and other for AppointmentEnd. I need to check if there is already appointment existing for the selected period. I need to validate the date and time selected in the selected changed event. I could get OnDateChanged event at server side but here i couldn't validate the time part. How can this be done?
Can you provide the code your using at the moment for validation for DateTime picker control as I think you can validate it using onDateChanged Server side event can't you.
Hope it helps :)
you can try the below code: