DuinoMiteMegaAn Senior Member
 Joined: 17/11/2011 Location: AustraliaPosts: 231 |
| Posted: 03:05pm 11 Mar 2012 |
|
|
|
Today is DST (Daylight savings time in the US) and with my time/date algorithms I was expecting a hour increase.
You would think that a simple compare would work like
IF Date$ = "11-3-2012" then increase_time_1_hr <------- does not work
A print of Date$ reveals 11-3-2012 <----- The same as the string above ? Both are the same?
The trouble is the LEN of Date$ is 10 chars and the LEN of "11-3-2012" is 9 chars?
I had to convert the Date$ back to numbers and back to strings again for
the compare!
BTW ... Another way is to make sure the compare string/array is LEN of 10.
"11-3-2012" changed to "11-03-2012"
Edited by DuinoMiteMegaAn 2012-03-13 |