dateCompare

Overview ColdFusion Open BlueDragon Lucee

Performs a full date/time comparison of two dates. -1, if date1 is less than date2 0, if date1 is equal to date2 1, if date1 is greater than date2 [datepart - quicky] yyyy: Year; q: Quarter; m: Month; y: Day of year; d: Day w: Weekday; ww: Week; h: Hour; n: Minute; s: Second; l: Millisecond

Attributes

Name Required Type Default Description
arg3 No
date1 Yes DateTime
date2 Yes DateTime
3
datePart No String