Returns the end year date of the given date
Optional
the date to inspect
the end year date of the given date
getEndOfYear(new Date(2023, 8, 30)); // Date(2023, 11, 31, 23, 59, 59) Copy
getEndOfYear(new Date(2023, 8, 30)); // Date(2023, 11, 31, 23, 59, 59)
Returns the end year date of the given date