startDate | String Starting date to compare against endDate. |
endDate | String Ending date to compare against startDate. |
startDatePattern | String Format in which the startDate parameter is specified (for example, yyyyMMdd HH:mm:ss.SSS). For pattern-string notation, see the "Pattern String Symbols" section. |
endDatePattern | String Format in which the endDate parameter is specified (for example, yyyyMMdd HH:mm:ss.SSS). For pattern-string notation, see the "Pattern String Symbols" section. |
result | String Checks whether startDate is before, the same, or after the endDate. | |
A value of... | Indicates that... | |
+1 | The startDate is after the endDate. | |
0 | The startDate is the same as the endDate. | |
-1 | The startDate is before the endDate. |