Date

GET/v0/date

Validates date strings against multiple common formats. Checks both format correctness and logical validity (e.g., month 1-12, day within month bounds, leap year rules).

Try it

Query Parameters

ParameterTypeRequiredDescription
valuestringYesThe date string to validate
formatstringNoExpected format (e.g., YYYY-MM-DD, DD/MM/YYYY). If omitted, auto-detects.

Example Request

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.isvalid.dev/v0/date?value=2026-02-19&format=YYYY-MM-DD"

Response Fields

FieldTypeDescription
validbooleanWhether the date string is valid
isostringThe parsed date in ISO 8601 format (YYYY-MM-DD)

Example Response

{
  "valid": true,
  "iso": "2026-02-19"
}