We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'DateTimeFormat', 'Intl'
This is the behavior in every version I tried, and I reviewed the FAQ for entries about Intl.DateTimeFormat
Playground link with relevant code
const date = new Date(); const formatted = new Intl.DateTimeFormat('en', { dateStyle: 'short', timeStyle: 'short', }).format(date); console.log(formatted);
Intl.DateTimeFormat options object is missing properties.
Intl.DateTimeFormat options object should have types for dateStyle and timeStyle
The text was updated successfully, but these errors were encountered:
Your target is set to ES2017, but this target does not support these properties. When you change your target to ES2020 it will work. See also #44632.
Sorry, something went wrong.
No branches or pull requests
Bug Report
π Search Terms
'DateTimeFormat', 'Intl'
π Version & Regression Information
This is the behavior in every version I tried, and I reviewed the FAQ for entries about Intl.DateTimeFormat
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Intl.DateTimeFormat options object is missing properties.
π Expected behavior
Intl.DateTimeFormat options object should have types for dateStyle and timeStyle
The text was updated successfully, but these errors were encountered: