Localization

Download javascript eBook

Syntax

  • new Intl.NumberFormat()
  • new Intl.NumberFormat('en-US')
  • new Intl.NumberFormat('en-GB',{timeZone: 'UTC'})

Parameters

ParamaterDetails
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"

Related Examples

Stats

59 Contributors: 3
Wednesday, July 19, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook