Argument | Required/ Optional | Description |
---|---|---|
date1 | Required | Date/Time datatype. The first date you want to compare. You can enter any valid expression as long as it evaluates to a date. |
date2 | Required | Date/Time datatype. The second date you want to compare. You can enter any valid expression as long as it evaluates to a date. |
DATE_PROMISED | DATE_SHIPPED | RETURN VALUE |
---|---|---|
Jan 1 1997 | Jan 13 1997 | -1 |
Feb 1 1997 | Feb 1 1997 | 0 |
Dec 22 1997 | Dec 15 1997 | 1 |
Feb 29 1996 | Apr 12 1996 | -1 (Leap year) |
NULL | Jan 6 1997 | NULL |
Jan 13 1997 | NULL | NULL |