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
Pattern String Symbols. |
endDatePattern | String Format in which the endDate parameter is specified (for example, yyyyMMdd HH:mm:ss.SSS). For pattern-string notation, see
Pattern String Symbols. |
result | String Checks whether startDate is before, the same, or after 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. |