date-time-format-timezone icon indicating copy to clipboard operation
date-time-format-timezone copied to clipboard

Inconsistent format - option weekday: 'long' between Intl.DateTimeFormat and toLocaleDateString

Open brookabyss opened this issue 4 years ago • 0 comments

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"

brookabyss avatar Jan 24 '20 01:01 brookabyss