|
-
January 31st, 2005, 12:59 AM
#1
Scheduler with Hour/Minute support
I am creating a scheduler with Year/Month/Day/Hour/Minute scheduling.
For the Year/Month/Day I used the built in calendar (<asp:calendar>) control which returns the selected date as:
DateTime dtSelected = calendar.SelectedDate;
Now I need to handle the Hour / Minute, so I created two dropdownlist boxes (if you know a better way please tell me, is there some kind of Hour/Minute control like the calendar?) one for the Hour and one for the Minutes.
After the user has selected everything I want to a) post the result and b) save the result in a SQL Database. Therefore I want to add the Hour/Minute and Year/Month/Day variables together somehow.
Is there a way to convert the current dropdownlist box results into a DateTime variable (correct format) and then merge it with the current DateTime variable that holds the Year/Month/Day so I have 1 variable with the complete schedule?
Can this be done? Is there a more efficient way?
Any ideas would help, thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|