Author: KarinElvira | Posted on: 11/30/2010 5:06:31 AM | Views : 455

I have one Calendar,  and two DropDownLists. I want to get the selected date from the calendar, the time chosen from the first DropDownList and combine them to one smallDateTime to insert into my database and then do the same with the same date and the time chosen from the second DropDownList. I want the smallDateTime to look like this for example: '2010-12-01 14:00:00'. My code below doesn't work but I think it can give you an idea of what I want to accomplish. I get an error message on this line of code:
DateTime dateStart = Convert.ToDateTime(date + start);//Error: Invalid DateTime stringHow should I change it?


DateTime date = CalendarMyMeetings.SelectedDate; ...

Go to the complete details ...