Date Validator
Check whether text is a valid date as you type it, right in your browser, without sending it anywhere.
Input
Output
No value
Guide
What does a valid date look like?
A date written in numbers has a day, a month and a year, in an order that depends on where you are: day first in most of Europe (17/05/2026 or 17.05.2026), month first in the United States (05/17/2026), and year first in the ISO 8601 standard, in databases and in countries such as Sweden and Japan (2026-05-17). A valid date fits its format and also exists on the calendar: April has 30 days, and February 29 only comes in leap years.
You check a date when a form or a program rejects one, when you clean up the dates of a spreadsheet or a CSV import, or when you test a form that asks for a birthday, a booking or a delivery date.
Tool description
Type or paste a date into the Date field, and the result shows as you type: "Date is valid" or "Date is not valid". Spaces and line breaks around the date are ignored.
The Format menu sets the order of the year, month and day. It starts on YYYY-MM-DD, and its other choices are YYYY/MM/DD, YYYY.MM.DD, DD/MM/YYYY, DD.MM.YYYY, DD-MM-YYYY, MM/DD/YYYY and MM-DD-YYYY.
Exact format only starts off, and then the separator in the format's name doesn't matter: a slash, a hyphen or a dot all pass, as long as the date uses the same one throughout. With YYYY-MM-DD, 2026-05-17, 2026/05/17 and 2026.05.17 all pass. Turn it on, and only 2026-05-17 does.
Dates that pass
- The year, month and day in the order of the format, with four digits for the year and two each for the month and day:
2026-05-17with YYYY-MM-DD,17.05.2026with DD.MM.YYYY,05/17/2026with MM/DD/YYYY - February 29 in leap years:
2028-02-29and2000-02-29pass, but1900-02-29fails, as a century year is a leap year only when it divides by 400
Dates that fail
- Days that don't exist:
2026-02-30,2026-04-31, and2026-02-29, as 2026 isn't a leap year - Single-digit days and months, such as
2026-5-7: write2026-05-07instead - Two-digit years, such as
17/05/26with DD/MM/YYYY - Separators mixed in one date (
2026-05/17), spaces (2026 05 17) or no separators at all (20260517) - The parts in another order than the format's:
17-05-2026fails with YYYY-MM-DD - A time after the date, as in
2026-05-17T10:00
Good to know
- Some dates fit two formats:
05/06/2026passes as DD/MM/YYYY (5 June) and as MM/DD/YYYY (6 May), so the check can't tell which one was meant. - A valid date can still be wrong for its purpose: a birthday in the future passes too.
- For a date with a time, use the ISO 8601 Date Validator. To rewrite a date in another order, use the Date Format Converter.
Features
- Year-first, day-first and month-first formats
- Slashes, hyphens or dots, or only the format's own separator
- Knows month lengths and leap years
- Results as you type, with no button to press
- Runs in your browser, so nothing you type is sent anywhere