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
| Parameter | Type | Required | Description |
|---|---|---|---|
| value | string | Yes | The date string to validate |
| format | string | No | Expected 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
| Field | Type | Description |
|---|---|---|
| valid | boolean | Whether the date string is valid |
| iso | string | The parsed date in ISO 8601 format (YYYY-MM-DD) |
Example Response
{
"valid": true,
"iso": "2026-02-19"
}