J
James
Hi Guys,
Just looking for the best way to compare two times.
What I want to do is make sure a time is in between two other times.
E.g. If the current time is 14.00 I want to check that it is between 13.30
and 14.30.
Would it be best be using the TimeSpan class?
Idealy I want to do:
If (Time1 > Time2) And (Time1 < Time3) then
'do stuff
End If
but that does not work correctly.
Thanks
James
Just looking for the best way to compare two times.
What I want to do is make sure a time is in between two other times.
E.g. If the current time is 14.00 I want to check that it is between 13.30
and 14.30.
Would it be best be using the TimeSpan class?
Idealy I want to do:
If (Time1 > Time2) And (Time1 < Time3) then
'do stuff
End If
but that does not work correctly.
Thanks
James