Skip to main content
ToolSmartly

Age Calculator and Date Difference Calculator

Three precise calculations: your exact age and the countdown to your birthday, the duration between two dates in years, months, days, hours, minutes and seconds, and the date you get by adding or subtracting days, weeks, months or years.

Date calculator

How to calculate an age or the time between two dates

The calculator counts real calendar months, then days: it takes into account months of 28 to 31 days and leap years. Dates and times are used exactly as you enter them, in local time, and everything is calculated in your browser.

How to use it

  1. Choose the Age, Time between two dates or Add or subtract tab.
  2. Age: enter the date of birth (and the time if you know it). Leave the calculation date empty to get the current age, updated every second.
  3. Duration: enter the start date and the end date, with times if needed, then click Calculate duration.
  4. Add or subtract: pick a start date, the operation, then the number of years, months, weeks and days.

How the calculation works

To go from a date A to a date B, the tool adds to A the largest number of whole months that does not go past B, then counts the remaining days, hours, minutes and seconds. When the day does not exist in the target month, it is moved to the last day of that month: one month after 31 January 2025 is 28 February 2025.

Hours, minutes and seconds are counted in civil time, 24 hours per day: the hour gained or lost when clocks change for daylight saving time is not counted.

Examples

CalculationResult
From 1 January 2020 to 31 December 20233 years, 11 months and 30 days, i.e. 1,460 days
From 31 January 2025 to 1 March 20251 month and 1 day, i.e. 29 days
Age on 28 February 2026 of someone born on 29 February 200026 years
1 January 2024 + 6 months + 15 daysTuesday 16 July 2024
31 January 2025 + 1 monthFriday 28 February 2025

Use cases

  • Exact age for a form, a registration or an age requirement on a given date (fill in the calculation date).
  • Age difference between two people: use the Duration tab with both dates of birth.
  • Length of service or of a contract between the start date and the end date.
  • Deadlines: end date of a probation period, a notice period or a subscription with the Add or subtract tab. For a legal deadline, also check the counting rules specific to it (business days, public holidays).

Frequently asked questions

How do I calculate my exact age?

Count the whole years since the date of birth, then the whole months, then the remaining days. Enter your date of birth in the Age tab: the result is shown in years, months, days, hours, minutes and seconds.

How is the age of someone born on 29 February calculated?

In non-leap years, the tool sets the birthday on 28 February, the last day of the month. Some legal rules use 1 March instead: if it matters legally, check the rule that applies.

Are the start day and the end day both counted?

The duration is the gap between the two dates: from 1 to 31 January there are 30 days. If you want to count both days, add 1 to the number of days.

Why can the Chinese sign differ from the year of birth?

The Chinese year starts at the Lunar New Year, between 21 January and 20 February. Someone born in January or early February often belongs to the sign of the previous year; the tool uses your browser’s Chinese calendar to account for this.

Are my dates stored?

No, everything is calculated in your browser and nothing is sent.