Returns the end month date of the given date
Optional
the date to inspect
the end month date of the given date
getEndOfMonth(new Date(2023, 8, 1)); // Date(2023, 8, 30, 23, 59, 59) Copy
getEndOfMonth(new Date(2023, 8, 1)); // Date(2023, 8, 30, 23, 59, 59)
Returns the end month date of the given date