Returns a new Date representing the start of the day (00:00:00.000) in local time.
Date
The input date.
startOfDay(new Date("2024-06-15T14:30:00")) // => 2024-06-15T00:00:00.000 Copy
startOfDay(new Date("2024-06-15T14:30:00")) // => 2024-06-15T00:00:00.000
Returns a new
Daterepresenting the start of the day (00:00:00.000) in local time.