Technical & Developer Tools
Birth Date Validator
Check date validity, leap day legality, and future date errors.
Result
- Age on the check date
- Stated age check
Step-by-step working
- Format and calendar check failed: February 2023 has only 28 days
What Is the Birth Date Validator?
A Birth Date Validator is a tool that checks whether a date of birth is a real calendar date, is not in the future and falls in a plausible range.
Invalid birth dates break age calculations. The validator catches 4 error types: impossible days (April 31), invalid leap days (February 29, 2023), future dates and implausible ages (over 122 years, the oldest verified human age).
Validation happens before any age is computed, so forms and databases reject bad input early.
How Does the Birth Date Validator Work?
The Birth Date Validator works by running 4 checks in order: format, calendar, future date and plausible age.
- Enter the birth date: Type the year, month and day.
- Check the calendar: The day must be between 1 and the days in that month, with February 29 only in leap years.
- Check the future: The date must be on or before the reference date.
- Check plausibility: An age over 122 years flags a likely typo, such as 1092 for 1992.
Birth Date Validator Formula
The validation rule is Valid ⇔ 1 ≤ M ≤ 12 ∧ 1 ≤ D ≤ DaysInMonth(Y, M) ∧ B ≤ T ∧ Age(B, T) ≤ 122.
DaysInMonth(Y, 2) = 29 if leap(Y) else 28; leap(Y) = (Y mod 4 = 0 ∧ Y mod 100 ≠ 0) ∨ Y mod 400 = 0
DaysInMonth = 30 for April, June, September, NovemberDaysInMonth = 31 for the other 7 months
| Symbol | Meaning |
|---|---|
Y, M, D | Year, month and day entered |
T | Reference date (today) |
Birth Date Validator Example
Validate the birth date 2023-02-29 on November 25, 2026.
- 2023 mod 4 = 3, so 2023 is not a leap year
- February 2023 has 28 days; day 29 fails
The date is invalid: February 2023 has only 28 days.
Birth Date Validator Conversion Table
The table runs 8 inputs through the 4 checks with a reference date of 2026-11-25:
| Input | Result | Reason |
|---|---|---|
| 2000-03-10 | Valid | Age 26 |
| 2023-02-29 | Invalid | February 2023 has 28 days (not a leap year) |
| 2024-02-29 | Valid | Age 2 |
| 1900-02-29 | Invalid | February 1900 has 28 days (not a leap year) |
| 2000-02-29 | Valid | Age 26 |
| 1995-04-31 | Invalid | April 1995 has 30 days |
| 2027-01-01 | Invalid | Date is in the future |
| 1092-06-15 | Flagged | Age 934 exceeds 122 years |
1900 was not a leap year, since 1900 is divisible by 100 and not by 400. 2000 was a leap year.
What Are the Uses of the Birth Date Validator?
The Birth Date Validator has 4 main uses: form validation, data cleaning, database constraints and test cases.
- Form validation: Sign-up forms reject impossible dates before submission.
- Data cleaning: Analysts flag rows with future or impossible birth dates.
- Database constraints: CHECK constraints block birth dates after the current date.
- Test cases: QA teams test leap-day and month-end inputs.
Birth Date Validator FAQ
Was February 29, 1900 a real date?
No, February 29, 1900 was not a real date in the Gregorian calendar, since 1900 was not a leap year.
What is the oldest plausible birth date?
The oldest plausible birth date gives an age of 122 years, the record held by Jeanne Calment.
Written and reviewed by Iqbal Hussain. Last reviewed. Calendar rules and sources: methodology.
Related Technical & Developer Tools Tools
Time Zone Aware Age Calculator
Compare birth and reference timestamps across global time zones.
Unix Birth Timestamp Age Calculator
Calculate elapsed age from seconds-since-epoch Unix timestamps.
ISO 8601 Birth Date Age Calculator
Calculate age from standard ISO 8601 date-time strings.
Excel Age Formula Generator
Generate DATEDIF and YEARFRAC spreadsheet age formulas.
Google Sheets Age Formula Generator
Generate cloud spreadsheet formulas for birth-date age tracking.
SQL Age Query Generator
Generate age calculation SQL queries for PostgreSQL, MySQL, and SQLite.