JavaScriptLocalization


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"