Originally posted by Max Habibi:
nice
I second that, thanks Jim.
Just to take things one step further... I didn't want the dateDiff method to return 0 in the following case:
dateX = 06/10/2004 00:00:00
dateY = 06/09/2004 23:00:00
So, I included a reducePrecision() method to take both dates down to only day precision. That way, the above dates become:
dateX = 06/10/2004 00:00:00
dateY = 06/09/2004 00:00:00
And the dateDiff method returns 1.
In case you're curious:
Thanks again for the help!