x402

Date Parse (x402)

Parse ambiguous date strings into ISO 8601. Handles '3/4/25', 'March 4th', '4. mars 2025', '2025-W14'. Detects ambiguity.

get/x402/v2/date-parse

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/date-parse
  • Auth: none required

Query parameters

date_stringstring required

Date string to parse

preferred_formatstring

DMY, MDY, or YMD (for ambiguous dates)

Response

Success

dayinteger
yearinteger
monthinteger
iso_datestring
day_of_weekstring
is_ambiguousboolean

Example response

{
  "day": 4,
  "year": 2025,
  "input": "2025-03-04",
  "month": 3,
  "parsed": true,
  "iso_date": "2025-03-04",
  "day_of_week": "Tuesday",
  "is_ambiguous": false
}

Changes

No recorded changes to this operation across all 1 revision of this API.