Designing and Implementing Business Process Models 10.4 | Designing and Implementing Business Process Models | 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.

Copyright © 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release