deno.com
method Intl.DateTimeFormat.formatRangeToParts
#DateTimeFormat.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 #

#T extends Formattable

Parameters #

#startDate: T

The start date of the range to format.

#endDate: T

The start date of the range to format. Must be the same type as startRange.

Return Type #

#DateTimeFormat.formatRangeToParts(
startDate: Date | number,
endDate: Date | number,
): DateTimeFormatRangePart[]

Parameters #

#startDate: Date | number
#endDate: Date | number

Return Type #