Re: JAVA Time Problem: Want to get the current time and perform validation




The One wrote:
Here is the sample code:
[snip]
if (iHour > 8 & iHour < 20)
[snip]
This code doesn't seem to work correctly.

Usually, its a good idea to say what you expect the code to do, and
what you see it actually doing.
Although, I think I see your problem:

Perhaps you should try "iHour >= 8 && iHour <= 20".

.