parseISO
Calendar
stable
Parse an ISO 8601 date string (`"YYYY-MM-DD"`) into a JavaScript `Date` using local midnight, matching the behaviour of the Origam calendar internals.
API
Signature
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- valuerequiredstring
- An ISO 8601 date string in `YYYY-MM-DD` format.
API
Return value
The value returned by this util.
- A `Date` set to local midnight on the parsed date. Note: uses `new Date(year, month - 1, day)` — not UTC.
Usage
Examples
Ready-to-paste usage snippets.
Parse an ISO date string