Localization
suggest changeSyntax
- new Intl.NumberFormat()
- new Intl.NumberFormat("en-US")
- new Intl.DateTimeFormat("en-GB", { timeZone: "UTC" })
timeZone is a DateTimeFormat option. NumberFormat ignores it. The table below lists DateTimeFormat fields, not number fields.
Parameters
| Parameter | Details |
|---|---|
| weekday | “narrow”, “short”, “long” |
| era | “narrow”, “short”, “long” |
| year | “numeric”, “2-digit” |
| month | “numeric”, “2-digit”, “narrow”, “short”, “long” |
| day | “numeric”, “2-digit” |
| hour | “numeric”, “2-digit” |
| minute | “numeric”, “2-digit” |
| second | “numeric”, “2-digit” |
| timeZoneName | “short”, “long” |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents