Methods
(inner) compareDates(date1, date2)
Comparison Function for Dates
Parameters:
Name | Type | Description |
---|---|---|
date1 |
Object | Date 1 |
date2 |
Object | Date 2 |
- Source:
Returns:
-1 if date1 < date2, 0 if date1 == date2, 1 if date1 > date2