# agent402.tools Date Format Parser

> agent402.tools Date Format Parser is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Parses a datetime string from any common format and returns it expressed in every major datetime format simultaneously

## Facts

- Endpoint: GET https://agent402.tools/api/date-format
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-date-format-parser-cf4cae12
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lRUD_RWoCXwKS_CnTk0h1

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-date-format-parser-cf4cae12
```

Example prompt: Can you parse '2024-03-15T14:30:00Z' and give me that datetime in every format — Unix seconds, Unix milliseconds, RFC 2822, date-only, time-only, and what day of the week it falls on?

## When to prefer this

Use this endpoint when you need to convert a datetime from one format (ISO 8601, Unix timestamp in seconds or milliseconds, RFC 2822, or natural language) into all common datetime representations at once, rather than making multiple conversion calls. Ideal when an agent needs to normalize an arbitrary datetime string whose input format is unknown.

## Known failure modes

- Invalid or unrecognizable datetime string returns an error response
- Missing required 'datetime' query parameter returns a 400 error
- Ambiguous natural language strings may be misinterpreted
- Extremely far future or past dates may be out of supported range

## How this service works

Parse a datetime from any format (ISO 8601, Unix timestamp in seconds or milliseconds, RFC 2822, or natural date string) and return it in every common format: ISO 8601, Unix (seconds), Unix (ms), RFC 2822, date-only, time-only, day of week, and human-relative (e.g. '3 days ago'). ?datetime=1719100800.

## Output

Returns the input datetime expressed in all major formats: ISO 8601, Unix timestamp in seconds, Unix timestamp in milliseconds, RFC 2822, date-only (YYYY-MM-DD), time-only, day of week, and a human-readable string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "datetime"
     ],
     "properties": {
      "datetime": {
       "type": "string",
       "description": "Datetime to parse (ISO 8601, Unix timestamp, RFC 2822, or natural string)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "input",
      "iso",
      "unix",
      "unixMs",
      "rfc2822",
      "date",
      "time",
      "dayOfWeek",
      "relative"
     ],
     "properties": {
      "iso": {
       "type": "string"
      },
      "date": {
       "type": "string"
      },
      "time": {
       "type": "string"
      },
      "unix": {
       "type": "integer"
      },
      "input": {
       "type": "string"
      },
      "unixMs": {
       "type": "integer"
      },
      "rfc2822": {
       "type": "string"
      },
      "relative": {
       "type": "string"
      },
      "dayOfWeek": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "iso": "2024-06-23T00:00:00.000Z",
  "date": "2024-06-23",
  "time": "00:00:00.000",
  "unix": 1719100800,
  "input": "1719100800",
  "unixMs": 1719100800000,
  "rfc2822": "Sun, 23 Jun 2024 00:00:00 GMT",
  "relative": "1 year(s) ago",
  "dayOfWeek": "Sunday"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-date-format-parser-cf4cae12/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
