Date.before()

Signature

boolean before (DateTime d1, DateTime d2)

Domain

action, condition

Description

Test if the first date comes before the second date, independently of the time of day.

Parameters

NameTypeDescription
d1DateTimeA DateTime (date/time) that will be compared with the second argument.
d2DateTimeA DateTime (date/time) that will be compared with the first argument.

Returns

TypeDescription
booleantrue if the date d1 comes before the date d2, otherwise return false.

Cautions

none