Returns whether the given date is same year with the comparison date
Optional
the date to check
the date to compare
whether the given date is same year with the comparison date
isSameYear(new Date(2023, 1, 1), new Date(2023, 8, 30)); // true Copy
isSameYear(new Date(2023, 1, 1), new Date(2023, 8, 30)); // true
Returns whether the given date is same year with the comparison date