I have a parameter table.
One is the closing time.
But user only type a number (6, 5,etc)
how do i convert this number in order to compare with the current time?
Printable View
I have a parameter table.
One is the closing time.
But user only type a number (6, 5,etc)
how do i convert this number in order to compare with the current time?
One number to describe time?
What do you mean?
6 means 6 o'clock A.M
4 means 4 o'clock A.M
14 meas 2 PM
Will this time be on the same day as the current day?
yes, on the same day as the current day
the DateTime structure has some methods u can use to compare time, add time etc.
have you looked into that yet?
DateTime.Today.AddHours(6) returns a DataTime structure representing 6 AM today. You can use similar expressions to get other dates and times which can be compared using DateTime.Compare().