function parseIsoDateParam
parseIsoDateParam(value: string | null): string | null

Parse a user-supplied YYYY-MM-DD value (a ?date= query param): the string when well-formed and a real calendar date, else null. The UTC round-trip rejects rolled-over impossibilities like 2025-02-30.

Parameters

value: string | null

Return Type

string | null

Usage

import { parseIsoDateParam } from "doc.ts";