|
-
Jun 10th, 2003, 08:57 AM
#1
Thread Starter
Fanatic Member
Time comparing
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?
-
May 23rd, 2005, 04:52 AM
#2
Frenzied Member
Re: Time comparing
One number to describe time?
What do you mean?
-
May 23rd, 2005, 06:50 AM
#3
Thread Starter
Fanatic Member
Re: Time comparing
6 means 6 o'clock A.M
4 means 4 o'clock A.M
14 meas 2 PM
-
May 23rd, 2005, 06:52 AM
#4
Frenzied Member
Re: Time comparing
Will this time be on the same day as the current day?
-
May 23rd, 2005, 01:27 PM
#5
Thread Starter
Fanatic Member
Re: Time comparing
yes, on the same day as the current day
-
May 23rd, 2005, 01:46 PM
#6
Frenzied Member
Re: Time comparing
the DateTime structure has some methods u can use to compare time, add time etc.
have you looked into that yet?
-
May 24th, 2005, 12:17 AM
#7
Re: Time comparing
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().
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
|