Hi,
the reason i used round is because i only need to get the day to use. Try using it without the round in there, it goes crazy!
The original code wasn't written by me (i just have to attempt to fix the error)
so i'm not 100% on it either
I'm not sure about the reference to '<=0.999988426' but im assuming it denotes midnight of something along those lines. The other logical test in the formula i have adjusted - it is simply a test to ensure that the update time is in the past. If both these are true we add one day and use this as our day value in the second formula.
Hope this clears it up a bit
edit : 0.999988426 = (11:59:59 P.M.)
Bookmarks