Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.
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

@brookabyss

Description

@brookabyss

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions