Localization
suggest changeSyntax
- new Intl.NumberFormat()
- new Intl.NumberFormat(‘en-US’)
- new Intl.NumberFormat(‘en-GB’,{timeZone: ‘UTC’})
Parameters
| Paramater | 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