Sets the time of the given date to the start of the day (00:00:00.000).
The original date.
A new Date at the start of the same day.
setToStartOfDay(new Date()); // → today at 00:00:00.000 Copy
setToStartOfDay(new Date()); // → today at 00:00:00.000
Sets the time of the given date to the start of the day (00:00:00.000).