# FastX402 Lab – Localized Date Formatter

> FastX402 Lab – Localized Date Formatter is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-17).

Formats an ISO 8601 date using a date-fns/Unicode pattern in one of five locales (English, Turkish, German, French, Spanish)

## Facts

- Endpoint: GET https://fastx402.tools/date-format?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-lab-localized-date-formatter-14a70928
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q6hr5OVncoH4TQTbWaBhI

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 fastx402-lab-localized-date-formatter-14a70928
```

Example prompt: Format 2026-10-17T14:05:00 as a full date with the weekday name, day, month, year, and time in German — use the pattern EEEE, d MMMM yyyy HH:mm.

## When to prefer this

Use this endpoint when you need to render a date as a localized, human-readable string in one of five supported languages (English, Turkish, German, French, Spanish) using a flexible date-fns/Unicode pattern. Prefer it over generic date libraries when you need a simple, stateless API call for i18n date formatting without setting up a locale library in your environment.

## Known failure modes

- Missing required 'date' query parameter — returns error
- Missing required 'pattern' query parameter — returns error
- Invalid ISO 8601 date string — may return error or unexpected result
- Unsupported locale value outside en/tr/de/fr/es — returns validation error
- Invalid or malformed date-fns pattern — may return error or garbled output
- Payment not provided or insufficient — x402 payment required response

## How this service works

146 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

A JSON object with a single 'formatted' string field containing the date rendered according to the provided date-fns pattern and locale — for example, {"formatted": "Saturday, 17 October 2026 14:05"} for English.

## 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": [
      "date",
      "pattern"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "ISO 8601 date or date-time"
      },
      "locale": {
       "enum": [
        "en",
        "tr",
        "de",
        "fr",
        "es"
       ],
       "type": "string",
       "description": "en, tr, de, fr or es (default en)"
      },
      "pattern": {
       "type": "string",
       "description": "date-fns format pattern, e.g. EEEE, d MMMM yyyy HH:mm"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "formatted": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "formatted": "Saturday, 17 October 2026 14:05"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-lab-localized-date-formatter-14a70928/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
