Intl.DateTimeFormat.formatRangeToParts - Web documentation
method Intl.DateTimeFormat.formatRangeToParts

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

Parameters

startDate: Date | number
endDate: Date | number

Return Type