Time format
ISO standard time format
Get the zero time format of the day
const date = new Date(new Date().setHours(0, 0, 0, 0));
const isoString = date.toISOString();
Effect
1. For example, get the time at 0:00 on 5.11
. 2. Get a random day
const date = new Date(new Date("2023-5-5").setHours(0, 0, 0, 0));
const isoString = date.toISOString();