import { dateParts } from "https://deno.land/x/complaindate@v0.7.2/support/dateParts.ts";
Extract year, month & day from an ISO 8601 string representation of a date.
yyyy-mm-dd
& yyyy-mm
are the most common formats, but others are handled too.
- Handles negative years
- Ignores any time or timezone information in the given string