Date & Time Expression Parser API
Convert natural language date and time expressions into structured ISO 8601 datetimes. Handles relative expressions, named periods, quarters, weekdays, fuzzy language, and absolute formats.
POST /api/parse
{
"expression": "end of Q3",
"anchor": "2026-06-11T00:00:00Z",
"timezone": "UTC"
}{
"input": "end of Q3",
"resolved": "2026-09-30T23:59:59+00:00",
"resolved_date": "2026-09-30",
"resolved_time": null,
"expression_type": "named_period",
"confidence": 0.9,
"ambiguous": false,
"explanation": "End of Q3 2026."
}Supported Expressions
- Relative days — today, tomorrow, next Monday, last Friday
- Durations — in 3 days, 2 weeks ago, a fortnight from now
- Named periods — end of Q3, start of next month, this weekend
- Absolute dates — June 15, 2026-06-15, 15/06/2026
- Datetime — June 15 at 3pm, 2026-06-15T14:00
- Time of day — 3pm, noon, midnight, 14:30
- Fuzzy — soon, recently, a while back (low confidence)
POST /api/batch
Parse up to 50 expressions in one request with a shared anchor and timezone.
Available on RapidAPI · APILayer · Zyla API Hub