Urgent
-
This is the Data i have Time interval = 30 min starting Time = 9:30 am End Time = 9:30 pm I have to get the Time intervals as follows 9:30 am to 10:00 am 10:00 am to 10:30 am 10:30 am to 11:00 am . . . .9:00 pm to 9:30 pm How can v get this in asp.net
thank u
-
This is the Data i have Time interval = 30 min starting Time = 9:30 am End Time = 9:30 pm I have to get the Time intervals as follows 9:30 am to 10:00 am 10:00 am to 10:30 am 10:30 am to 11:00 am . . . .9:00 pm to 9:30 pm How can v get this in asp.net
thank u
manikandan_be2005 wrote:
Time interval = 30 min starting Time = 9:30 am End Time = 9:30 pm
There is no time interval. If you want to get the time interval for 30 minutes go for javascript
Regards, Satips.
-
This is the Data i have Time interval = 30 min starting Time = 9:30 am End Time = 9:30 pm I have to get the Time intervals as follows 9:30 am to 10:00 am 10:00 am to 10:30 am 10:30 am to 11:00 am . . . .9:00 pm to 9:30 pm How can v get this in asp.net
thank u
Create TimeSpan values for the values, then you can simply do arithmetic with them. Example:
TimeSpan start = new TimeSpane(9, 30, 0);
TimeSpan stop = new TimeSpan(21, 30, 0);
TimeSpan interval = new TimeSpan(0, 30, 0);for (TimeSpan s = start; s <= stop; s += interval) {
Console.WriteLine(s.ToString());
}--- single minded; short sighted; long gone;