function formatDateRangeLabel
formatDateRangeLabel(
startIso: string | null,
endIso: string | null
): string

Format a booking's stored [start_at, end_at) ISO range as a human label. 1-day bookings collapse to formatDateLabel; multi-day bookings use the compact English range formatter (inclusive — subtracts 1 day from end_at, which is the first midnight after the booked window).

Parameters

startIso: string | null
endIso: string | null

Return Type

string

Usage

import { formatDateRangeLabel } from "docs/events.ts";