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

Technical & Developer Tools

ISO 8601 Birth Date Age Calculator

Calculate age from standard ISO 8601 date-time strings.

ISO 8601 Birth Date Age Calculator Inputs

ISO 8601 durationP26Y8M19D

Age
26 years, 8 months, 19 days
Total days (P…D)
P9760D
Birth date as ISO week date
2000-W10-5
Step-by-step working
  1. Parsed 2000-03-10 and 2026-11-29
  2. Interval = 26 Y, 8 M, 19 D
  3. Duration = P26Y8M19D

What Is the ISO 8601 Birth Date Age Calculator?

An ISO 8601 Birth Date Age Calculator is a tool that reads birth dates written in the International Organization for Standardization (ISO) 8601 format and returns the age, as values and as an ISO 8601 duration.

ISO 8601 writes dates from largest to smallest unit: YYYY-MM-DD, such as 2000-03-10. Date-times add T and a time, with an optional offset: 2000-03-10T14:25:00+05:30.

Age can be written as an ISO 8601 duration: P26Y8M15D means a period of 26 years, 8 months and 15 days. The format sorts correctly as text and avoids day-month confusion.

How Does the ISO 8601 Birth Date Age Calculator Work?

The ISO 8601 Birth Date Age Calculator works by parsing the YYYY-MM-DD parts, computing the calendar interval and formatting the result as PnYnMnD.

  1. Enter the ISO date: Type the birth date as YYYY-MM-DD, with an optional time and offset.
  2. Enter the reference date: Use today or another ISO date.
  3. Parse and validate: The calculator checks the month (01–12) and the day for that month.
  4. Read the duration: The age appears as years, months, days and as a duration string such as P26Y8M15D.

ISO 8601 Birth Date Age Calculator Formula

The formula is Duration = P{Years}Y{Months}M{Days}D, built from the calendar interval between the 2 ISO dates.

Age(ISO) = "P" + Y + "Y" + M + "M" + D + "D"

  • With time: P26Y8M14DT18H45M
  • Week form: P1393W (weeks only, not mixed with other units)
Variables in the ISO 8601 Birth Date Age Calculator formula
SymbolMeaning
PDuration designator ("period")
Y, M, DYears, months and days
TSeparator before time units in a duration

ISO 8601 Birth Date Age Calculator Example

Find the ISO 8601 duration from 2000-03-10 to 2026-11-25.

  1. Interval = 26 y, 8 m, 15 d
  2. Duration = P26Y8M15D

The age is P26Y8M15D.

ISO 8601 Birth Date Age Calculator Conversion Table

The table converts 6 ISO 8601 birth inputs into age durations on 2026-11-25:

ISO 8601 inputs and age durations on 2026-11-25
ISO 8601 InputMeaningAge Duration
2000-03-10Calendar dateP26Y8M15D
2000-03-10T14:25:00ZDate-time in UTCP26Y8M15D
2000-03-10T14:25:00+05:30Date-time with offsetP26Y8M15D
2000-070Ordinal date (day 70 of 2000)P26Y8M15D
2000-W10-5Week date (week 10, Friday)P26Y8M15D
1985-12-31Calendar dateP40Y10M25D

The ordinal date 2000-070 and the week date 2000-W10-5 both name March 10, 2000, a Friday.

What Are the Uses of the ISO 8601 Birth Date Age Calculator?

The ISO 8601 Birth Date Age Calculator has 4 main uses: APIs, data exchange, health records and sorting.

  • APIs: JSON APIs send birth dates as ISO 8601 strings.
  • Data exchange: CSV and XML files use YYYY-MM-DD to avoid date-order errors.
  • Health records: The Fast Healthcare Interoperability Resources (FHIR) standard stores birthDate as YYYY-MM-DD.
  • Sorting: ISO dates sort in date order as plain text.

ISO 8601 Birth Date Age Calculator FAQ

What does P26Y8M15D mean?

P26Y8M15D means a period of 26 years, 8 months and 15 days.

Is 2000-3-10 valid ISO 8601?

No, ISO 8601 calendar dates use 2-digit months and days: 2000-03-10.

Written and reviewed by Iqbal Hussain. Last reviewed. Calendar rules and sources: methodology.