By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,589 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,589 IT Pros & Developers. It's quick & easy.

code to check if in time interval pass midnight

P: n/a
Hi, not sure who has done this.

I want to set up a time interval that could be pass midnight. so
people can enter

8AM to 8AM (pass midnight to 2nd day)
8AM to 2 AM (pass midnight to 2nd day)
8AM to 2 PM

The have code to check if the time is in interval.

Any one has a good idea?

Thanks

Greg

May 18 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
greg chu wrote:
I want to set up a time interval that could be pass midnight. so
people can enter

8AM to 8AM (pass midnight to 2nd day)
8AM to 2 AM (pass midnight to 2nd day)
8AM to 2 PM
If it helps, what you're actually doing it looking to see whether the end
time is earlier than (or equal to) the start time. If it is, the time period
passes midnight.

--

(O)enone
May 18 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.