isSameYear
Returns whether the receiver and another value fall in the same calendar year. Only the year is compared; the month and any day anchor are ignored.
API Reference
Signatures
Parameters
Returns
Returns true when both months are in the same year; otherwise false.
Throws
- Throws when an input value is not a valid month.