2013-06-26

I have 2 drop downlists, StartTime and EndTime that I populate with times in 30 minute intervals, and
I'm trying to set the EndTime to be an hour later than StartTime when a user selects a new StartTime

My model:

My cshtml:

I can set the EndTime dropdownlist to EQUAL the StartTime dropdownlist with the following:

But how do I set the EndTime to be an hour later? (also handling occurances where the StartTime is 11:00 PM and 11:30 PM)

Thanks for your help

Show more