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
The Date format of dateStyle 'Medium' for en-IN locale is "d MMM y" as per web standards, But it's "dd-MMM-y" in the polyfill provided by intl-datetimeformat.
To Reproduce
Code snippet:
const date = new Date(2024,0,9);
console.log(
new Intl.DateTimeFormat('en-IN', {
dateStyle: 'medium',
}).format(date),
);
Expected behaviour
Current output: 20-Dec-2020
Expected output: 20 Dec 2020
The text was updated successfully, but these errors were encountered:
Our date time format scoring algorithm is different from ICU, thus the result. I personally don't really have to time to effectively port the ICU Java version to JS, so there'll always be slight differences.
Which package?
intl-datetimeformat
Describe the bug
The Date format of dateStyle 'Medium' for en-IN locale is "d MMM y" as per web standards, But it's "dd-MMM-y" in the polyfill provided by intl-datetimeformat.
To Reproduce
Code snippet:
Expected behaviour
Current output:
20-Dec-2020
Expected output:
20 Dec 2020
The text was updated successfully, but these errors were encountered: