Skip to main content
Calculate Age From Date Of Birth
Calculate Age From Date Of Birth
Exact Age Calculator

Technical & Developer Tools

Birth Date Validator

Check date validity, leap day legality, and future date errors.

Birth Date Validator Inputs

ResultInvalid: February 2023 has only 28 days

Age on the check date
—
Stated age check
—
Step-by-step working
  1. 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.

  1. Enter the birth date: Type the year, month and day.
  2. Check the calendar: The day must be between 1 and the days in that month, with February 29 only in leap years.
  3. Check the future: The date must be on or before the reference date.
  4. 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, November
  • DaysInMonth = 31 for the other 7 months
Variables in the Birth Date Validator formula
SymbolMeaning
Y, M, DYear, month and day entered
TReference date (today)

Birth Date Validator Example

Validate the birth date 2023-02-29 on November 25, 2026.

  1. 2023 mod 4 = 3, so 2023 is not a leap year
  2. 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:

Validation results for 8 birth date inputs on 2026-11-25
InputResultReason
2000-03-10ValidAge 26
2023-02-29InvalidFebruary 2023 has 28 days (not a leap year)
2024-02-29ValidAge 2
1900-02-29InvalidFebruary 1900 has 28 days (not a leap year)
2000-02-29ValidAge 26
1995-04-31InvalidApril 1995 has 30 days
2027-01-01InvalidDate is in the future
1092-06-15FlaggedAge 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.