function dateRange
dateRange(
start: DateString,
end: DateString,
): DateString[]

Generate a range of YYYY-MM-DD date strings from start to end (inclusive). A start past the end is an empty range: Array.from reads the negative length as zero.

Parameters

start: DateString
end: DateString

Return Type

DateString[]

Usage

import { dateRange } from "doc.ts";