Business Rules 10.11 | webMethods Business Rules Web Help | webMethods Business Rules Reference | Functions | Summary of Date Functions | int compareDates(Date date1, Date date2)
 
int compareDates(Date date1, Date date2)
Compares one date against another date and returns +1 if the first date is greater than the second date, -1 if the first date is less than the second date, and 0 if the dates are equal.
Input Parameters
date1
Date The first date to compare.
date2
Date The second date to compare against the first date.
Return Value
Integer The value 0 if dates are equal. The value -1 if the first date is before the second date. The value +1 if the first date is after the second date.