Returns a new Date representing the end of the day (23:59:59.999) in local time.
Date
The input date.
endOfDay(new Date("2024-06-15T08:00:00")) // => 2024-06-15T23:59:59.999 Copy
endOfDay(new Date("2024-06-15T08:00:00")) // => 2024-06-15T23:59:59.999
Returns a new
Daterepresenting the end of the day (23:59:59.999) in local time.