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 FormattableParameters Jump to heading
Jump to headingstartDate: TThe start date of the range to format.
Jump to headingendDate: TThe 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 | numberJump to headingendDate: Date | number