`new Intl.DateTimeFormat("sv-SE", {}).format(0)` returns: | ICU73/CLDR43 | ICU74/CLDR44 | |---|---| |`"1970-01-01"` | `"1970-1-1"` | (`sv-SE` locale because of misuses promoted by code like this one: <https://stackoverflow.com/questions/25050034/get-iso-8601-using-intl-datetimeformat>.)
Bug 1864612 Comment 2 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
`new Intl.DateTimeFormat("sv-SE", {}).format(0)` returns: | ICU73/CLDR43 | ICU74/CLDR44 | |---|---| |`"1970-01-01"` | `"1970-1-1"` | (`sv-SE` locale because of misuses promoted by code like this one: <https://stackoverflow.com/questions/25050034/get-iso-8601-using-intl-datetimeformat>.) A correct way to print the date in ISO-style is for example: `new Date(0).toISOString().split("T")[0]`.