method Intl.DateTimeFormat.formatRangeToParts
Jump to headingDateTimeFormat.formatRangeToParts<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.
Type Parameters Jump to heading
Jump to headingT extends Formattable
Parameters Jump to heading
Jump to headingstartDate: T
The start date of the range to format.
Jump to headingendDate: T
The start date of the range to format. Must be the same
type as startRange
.
Return Type Jump to heading
Jump to headingDateTimeFormat.formatRangeToParts(): DateTimeFormatRangePart[]
Parameters Jump to heading
Jump to headingstartDate: Date | number
Jump to headingendDate: Date | number