REGEX_DATE_YYYY_MM_DD

const
Date & Time

Regular expression that validates an ISO 8601 date string in YYYY-MM-DD format (years 1000–2999, months 1–12, days 1–31). Used by date utilities to guard against malformed inputs before parsing.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Resolved value

Ecosystem

Used by

Composables and components that consume this constant.

Usage

Examples

Ready-to-paste code snippets using this constant.

Validating a date string before parsing

typescript