JavaScript Localization

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

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"


Got any JavaScript Question?