If you pass the date as a string it creates the date in UTC.
const t1 = new Date(2024,11,12) // 11 because month starts at 0 // -> '2024-12-11T23:00:00.000Z' (I am in UTC+1) const t2 = new Date("2024-12-12") // '2024-12-12T00:00:00.000Z'