"What date is N days from now?" and "How far apart are these two dates?" — done reliably. Inputs use a calendar picker (input type="date"), and internally everything is normalised to UTC to remove timezone and daylight-saving drift.
86400000 shifts by a day across a DST boundary. Only avoided by normalising to UTC
The calendar picker renders according to your OS/browser locale, but the value is always YYYY-MM-DD, so results never depend on locale.
Advertisement