Optional
locales: string | string[]Optional
options: DateTimeFormatOptionsFormats a date according to the locale and formatting option for this DateTimeFormat object
The date to format
String representing the given date formatted according to the locale and formatting options of this DateTimeFormat object
Formats a date range in the most concise way based on the locales and options provided when instantiating this DateTimeFormat object
Date object representing start of the date range
Date object representing the end of the date range
String representing the given date range formatted according to the locale and formatting options of this DateTimeFormat object
Returns an array of locale-specific tokens representing each part of the formatted date range produced by this DateTimeFormat object
Date object representing start of the date range
Date object representing the end of the date range
Array of DateTimeRangeFormatPart objects
Allows locale-aware formatting of strings produced by this DateTimeFormat object
The date to format
Array of DateTimeFormatPart objects
Returns a new object with properties reflecting the locale and date and time formatting options computed during initialization of this DateTimeFormat object
ResolvedDateTimeFormatOptions object
Enables language-sensitive data and time formatting. Wraps Intl.DateTimeFormat