parse_date
Parse human-written dates into ISO 8601 by specifying locale (en-GB or en-US) to resolve ambiguous formats and validate impossible dates.
Instructions
Convert a human-written date into ISO 8601 (YYYY-MM-DD). USE THIS whenever you need to interpret a date a person typed — especially ambiguous numeric dates like 03/04/2025, which mean different things in the UK (day-first) vs US (month-first) — before storing, scheduling, or acting on it. Pass locale 'en-GB' or 'en-US'. Returns valid:false for impossible dates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| locale | No | en-GB |