{"uid":"cap_W2xX9qWy-7tTi2LKqogwD","slug":"locale-format-api-datetime-formatter-fb25504c","name":"Locale Format API – Datetime Formatter","description":"Verified, CLDR-versioned locale formatting for ~700 locales: currency amounts, numbers, dates and the raw rules — plus a verify endpoint to check your own output. Formatting per CLDR conventions — informational, not legal advice.","url":"https://localeformat.com/v1/datetime?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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":["iso","locale"],"properties":{"iso":{"type":"string","description":"ISO 8601 date or datetime"},"locale":{"type":"string","description":"BCP 47 locale tag, e.g. de-DE, de-CH, en-IN, ja-JP, ar-EG"},"timeZone":{"type":"string","description":"IANA zone, e.g. Europe/Berlin"},"dateStyle":{"type":"string","description":"full | long | medium | short"},"timeStyle":{"type":"string","description":"full | long | medium | short"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"formatted":"31.12.26","hourCycle":"h23","resolvedLocale":"de-DE"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_M35o_F4rtR9vuxk-aPS62","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Formats an ISO 8601 date or datetime string into a locale-aware display string for ~700 CLDR locales, with optional timezone, date style, and time style controls.","exampleAgentPrompt":"Format the date 2026-12-31 for German (de-DE) users in the Europe/Berlin timezone using a short date style.","exampleUseCases":[{"title":"Localized invoice date display","prompt":"I need to display the date 2025-07-15 on an invoice for a customer in Japan — can you format it the way Japanese users expect, using ja-JP locale?"},{"title":"Multilingual calendar event rendering","prompt":"Format the datetime 2025-09-01T14:30:00 for a user in Egypt using the ar-EG locale, with the Africa/Cairo timezone and a full date style and short time style."},{"title":"Internationalized e-commerce checkout date","prompt":"Show the expected delivery date 2025-08-20 in the format Swiss German users (de-CH) would see it, in the Europe/Zurich timezone with a medium date style."}],"resultDescription":"Returns a JSON object containing the locale-formatted date/datetime string (e.g. '31.12.26'), the resolved locale tag that was actually applied, and the hour cycle used (e.g. 'h23').","failureModes":["Missing required 'iso' or 'locale' query parameter returns a 400 error","Unrecognized or malformed BCP 47 locale tag may cause locale fallback or error","Invalid ISO 8601 date string format returns a parsing error","Unknown IANA timezone string may cause a formatting error or fallback","Payment not completed (x402) returns 402 Payment Required before formatting occurs"],"whenToPreferThis":"Choose this endpoint when you need authoritative, CLDR-versioned locale formatting for dates and datetimes across a wide range of locales (~700) with support for timezone resolution, date style, and time style — especially when accuracy against the CLDR standard matters for internationalized user interfaces, documents, or data pipelines. Prefer it over rolling your own Intl.DateTimeFormat logic when you need a verified, versioned, and consistent server-side result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:36:45.094Z","isFirstParty":false,"canonicalSlug":"locale-format-api-datetime-formatter-fb25504c"}