date1 | Date The first date to compare. |
date2 | Date The second date to compare against the first date. |
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. |