Building Your Learning Module...
Getting things ready for you!
Find videos you like?
Save to resource drawer for future reference!
Display dates in the format users expect - whether it's MM/DD/YYYY in the US or DD/MM/YYYY in Europe. Handles time zones, calendars, and localized month/day names automatically.
new Intl.DateTimeFormat(locale, options)formatter.format(date)BCP 47 language tag (string or array)
"en-US" - English (US)"de-DE" - German"ja-JP" - JapaneseOptional configuration object
dateStyle - Quick date formattimeStyle - Quick time formattimeZone - IANA timezoneshort medium long fullshort medium long fullyearmonthdayweekdayhourminutesecondhour12timeZonetimeZoneNameeraFormat dates for different locales
Control the date format with style options
Format times with different styles
Specify exactly which parts to show
Display dates in different time zones
Create once, format many dates
Automatically formats dates correctly for each locale
Display dates in any time zone with timeZone option
Use dateStyle and timeStyle for quick formats
Create formatter once, use many times for better performance