Date

Description

Utility functions to operate on DateTime properties as Dates without Time

Functions

NameSignature and Synopsis
afterboolean after (DateTime d1, DateTime d2)
Returns true if the date d1 is after the date d2. The comparison is done independently of the time of day of both d1 and d2.
beforeboolean before (DateTime d1, DateTime d2)
Returns true if the date d1 is before the date d2. The comparison is done independently of the time of day of both d1 and d2.
equalsboolean equals (DateTime d1, DateTime d2)
Returns true if the date of d1 is the same as the date of d2. The comparison is done independently of the time of day of both d1 and d2.
todayDateTime today ()
Returns the current date as a DateTime.