date.sameDay

Syntax date.sameDay (d1, d2)

Params d1 and d2 are dates.

Action Determines if the two dates are in the same day, ignoring hours, minutes and seconds.

Returns True if the two dates are in the same day, false otherwise.

Examples date.sameDay (clock.now (), date ("12/25/99"))

   » false

date.sameDay (clock.now (), date ("1/14/02"))

   » true

Notes I didn't want to write this code in-line one more time. DW

See also date.get

Discuss