interface Intl.DateTimeFormat
unstable
Methods Jump to heading
Jump to headingformat(date?: Formattable | number): stringFormat a date into a string according to the locale and formatting
options of this Intl.DateTimeFormat object.
Jump to headingformatToParts(date?: Formattable | number): globalThis.Intl.DateTimeFormatPart[]Allow locale-aware formatting of strings produced by
Intl.DateTimeFormat formatters.
Jump to headingformatRange<T extends Formattable>(startDate: T,endDate: T,): stringFormat a date range in the most concise way based on the locale and
options provided when instantiating this Intl.DateTimeFormat object.
Jump to headingformatRange(): stringJump to headingformatRangeToParts<T extends Formattable>(startDate: T,endDate: T,): DateTimeFormatRangePart[]Allow locale-aware formatting of tokens representing each part of the
formatted date range produced by Intl.DateTimeFormat formatters.