Skip to main content

Function: describeRange()

describeRange(start, end): string

Defined in: src/lib/invoice/index.ts:191

Format a billing-period range as "5/10 to 5/16/2026" — matches the Wise invoice line-item date style. Only the end date carries the year; month/day are unpadded.

Parameters

start

CalendarDate

The period start date (typically the Monday week-start).

end

CalendarDate

The period end date (typically the Saturday week-end); supplies the displayed year.

Returns

string

The range string, e.g. "5/10 to 5/16/2026".