This repository was archived by the owner on Jun 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
This repository was archived by the owner on Jun 27, 2020. It is now read-only.
Inconsistent format - option weekday: 'long' between Intl.DateTimeFormat and toLocaleDateString #39
Open
@brookabyss
Description
if I use toLocaleDateString on polyfilled method with weekday option I get an incorrect date format
new Date().toLocaleDateString([], {
timeZone: undefined,
weekday: 'long'
})
"Thursday, 1 23, 2020"
new Intl.DateTimeFormat([], {
timeZone: undefined,
weekday: 'long'
}).format(new Date())
"Thursday"
Metadata
Metadata
Assignees
Labels
No labels