enrich_date_v1_enrich_date_post
Parse human-readable date strings into structured ISO 8601 formats, resolving relative dates and timezones for database normalization.
Instructions
Transforms human-readable or messy date strings into structured ISO 8601 formats. Features relative date resolution (e.g., 'next Tuesday') and Timezone awareness.
Cost: 1 credit per request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | ||
| date_order | No | The expected order of day, month, and year for ambiguous dates (e.g., 01/02/03). | DMY |
| date_string | Yes | The human-readable or messy date string to parse. Supports relative dates (e.g., 'next Friday'), absolute dates, and mixed formats. USE THIS TOOL whenever you need to normalize a date for database entry. NEGATIVE CONSTRAINT: DO NOT use this tool for plain time strings (e.g., '14:00') without any date context. If the input is just a number, it might be a year; specify source_format if known. | |
| output_format | No | The desired strftime format for the output string. | %Y-%m-%d %H:%M:%S |
| source_format | No | Expected format of the input date. Use 'auto' for heuristic detection. | auto |
| target_timezone | No | DEPRECATED: Use context.timezone instead. |