method Intl.DateTimeFormat.formatRange
Jump to headingDateTimeFormat.formatRange<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.
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
stringJump to headingDateTimeFormat.formatRange(): stringParameters Jump to heading
Jump to headingstartDate: Date | numberJump to headingendDate: Date | numberReturn Type Jump to heading
string