compareDates
Compares a CustomCalendar instance with a date represented by the given SimpleDate.
Returns a negative integer if the dateToCompareFrom is before the dateToCompareTo, zero if they are equal, and a positive integer if the dateToCompareFrom is after the dateToCompareTo.
Return
A negative integer, zero, or a positive integer as described above.
Parameters
The CustomCalendar instance to compare.
The SimpleDate representing the date to compare to.
Overloaded function of above compareDates function.
Compares two CustomCalendar instances to determine their chronological order.
Returns a negative integer if dateToCompareFrom is before dateToCompareTo, zero if they are equal, and a positive integer if dateToCompareFrom is after dateToCompareTo.
Return
A negative integer, zero, or a positive integer as described above.
Parameters
The first date in the comparison.
The second date, which dateToCompareFrom is compared to.
Compares a SimpleDate instance with a date represented by the given year, month, and dayOfMonth.
Returns a negative integer if the SimpleDate is before the given date, zero if they are equal, and a positive integer if the SimpleDate is after the given date.
Return
A negative integer, zero, or a positive integer as described above.
Parameters
The SimpleDate instance to compare.
The year of the date to compare with.
The month of the date to compare with.
The day of the month of the date to compare with.