I am building a training system in Asp.net coded in C# that will allow administrator to create a training on the backend , then different session times
for example training:customer service, training date, 01/01/2012.
Different times
7:00 am - 11:00 am,
2:00 pm - 6:00 pm,
6:30 pm - 11:00pm
But I am not sure which way to go on the training times portion of it since a training can have different multiple times .
How should I design the time field on the table in the database, and the dropdownlist,?
my thought is to have a dropdown prepopulated with times from 07:00 to 23:00 , for start and ending dates, but not sure that would be the best thing?
You can keep total minutes e.g. (from 00:00 to 07:00) and keep in a integer field.
and you can use
TimeSpanobject to convert values.