date-time-format-timezone
date-time-format-timezone copied to clipboard
Inconsistent format - option weekday: 'long' between Intl.DateTimeFormat and toLocaleDateString
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"