Wareki ⇄ Gregorian date API

Parses Japanese era notation, full-width digits and mixed separators into ISO 8601, and annotates Gregorian dates with the correct era — accurate to era-transition days.

Endpoint

MethodPath
GET/api/v1/date/parse

Example

curl "https://formfit.dev/api/v1/date/parse?date=令和6年1月2日" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response (excerpt)

{"iso":"2024-01-02","wareki":"令和6年","valid":true}

FAQ

Are era boundaries handled?
Yes — 2019-04-30 is Heisei 31 and 2019-05-01 is Reiwa 1, including leap-year validation.

More formfit APIs