You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
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"