Date Difference Calculator

Count the days between two dates, or work out an age from a birth date, on one page.

What are you counting?

Year, month, day. Years from 1000 onward.

May be earlier than the start date.

Result

No result yet.

Calculate first, then the copy button appears.

Why use our Date Difference Calculator?

Elapsed and Inclusive Together

Every result shows the elapsed count and the inclusive count side by side, with a months and days breakdown, so you pick the figure your task needs.

Clock Changes Cannot Shift It

Two dates a day apart are one day apart, whether the location observes daylight saving or not. The count is whole calendar days, never hours divided by 24.

Birth Dates Stay on the Page

Dates you type are never placed in the URL, never sent to a server, and never included in an analytics event, which matters because a birth date is personal data.

What is a Date Difference Calculator?

A date difference calculator counts the days between two calendar dates. This one reports elapsed days, inclusive days, and a calendar breakdown in months and days, and the end date may be earlier than the start date.

Age mode uses the same machinery with a birth date and a reference date. You get the conventional years, months, and days figure, the total days lived, and the number of whole months completed. A birth date later than the reference date is rejected with an explanation instead of being rendered as a negative age.

Elapsed days versus inclusive days

  • Leap day example:A stay from 2024-02-28 to 2024-03-01 crosses the 2024 leap day and shows both counts.
  • Elapsed:2 days. The start date is day zero, the way an age or a countdown works.
  • Inclusive:3 days, the 28th, the 29th, and the 1st. Each endpoint counts, the way a hotel stay or a project timeline works.
  • Reversed dates:When the end date is earlier than the start date, the elapsed count becomes negative and the calendar breakdown still reads earliest first.
  • Order line:The result panel states which order the breakdown used, so a negative day count and a positive months-and-days figure cannot be mistaken for a bug.

Common Use Cases

Hotel Stays and Bookings

Read the inclusive count when the first and the last night or day both count toward the total.

Countdowns and Deadlines

Read the elapsed count when the start date is day zero, as in a countdown to a launch or an exam.

Age on a Given Date

Switch to age mode to fill in a form that asks how old someone was on a particular date, not just today. For years, months and days with totals and the next birthday, use the age calculator.

Leap-Day Birthdays

A person born on 2000-02-29 is 24 years, 0 months, and 0 days old on 2024-02-29, having passed six later leap days (2004 through 2024). On 2024-02-28, the day before, the same person is 23 years, 11 months, and 30 days old, because the February 29 anniversary has not arrived yet.

A Different Birthday Convention

Some people treat a leap-day birthday as March 1 in common years. This tool follows the plain calendar rule, where the anniversary is not reached until the matching day exists, so adjust the reference date if your jurisdiction uses a different convention.

Historical Records and Planning

The picker accepts years from 1000 onward, which covers historical records and future planning without producing dates the browser cannot represent reliably.

How to count days or age

1

Choose what you are counting

Pick Days between two dates, or pick Age from a birth date to relabel the fields Birth date and Age on this date.

2

Enter two complete dates

Fill in both labeled fields with complete calendar dates. An impossible date such as 2024-02-30, a two digit year, or a month of 00 is rejected with a message naming the problem rather than being rolled forward into March.

3

Select Calculate

Read the elapsed day count and the months and days breakdown, or the age breakdown, in the result panel.

4

Compare and copy

Compare the inclusive days when both endpoints count, then use Copy result if you need to keep the answer.

How the months and days breakdown is built

Month by Month

A month is not a fixed number of days, so the breakdown walks forward one calendar month at a time from the earlier date and counts how many complete months fit.

End-of-Month Clamping

Each step clamps to the target month length, which makes 2024-01-31 to 2024-02-29 exactly one month and zero days rather than 29 days.

Two Months Later

Continue from 2024-01-31 to 2024-03-31 and the answer is two months and zero days.

One Day Past

Stop at 2024-03-01 instead and the breakdown is one month and one day, with thirty days elapsed.

Parts That Add Up

The remainder after the whole months is a plain day difference, so the parts add back up to the elapsed count when you walk the same calendar steps again.

No Average Month

Dividing elapsed days by 30 or 30.44 instead drifts by a day or two over long spans and cannot express an end-of-month rule.

What this calendar count does not include

  • •Hours, minutes, and time zones. The input is a calendar date, not a moment in time, so for an exact duration between two instants you need timestamps with time zones.
  • •Business days. Weekends are included in every figure. To estimate working days, take five for each whole week inside the span and count the leftover days individually.
  • •Public holidays. They vary by country and year, and a table baked into the page would quietly go out of date and produce wrong payroll or contract figures.
  • •Legal or contractual deadlines. Check the applicable rule for endpoints, months, weekends, and holidays. A month from 2024-01-31 clamps to 2024-02-29 under this calculator's convention, which is 29 elapsed days, but that is calendar arithmetic, not a legal expiry date.
  • •Daylight saving time. Subtracting two local midnight timestamps across a spring clock change gives 23 hours, and naive division reports 0.958 days. This calculator never builds a local timestamp.
  • •Time zone offsets. Each entered date becomes a whole day number in the UTC civil calendar and those integers are subtracted, so a date pair spanning a clock change reports the same value it would in a time zone that never changes.

Count the Days Between Your Dates

Enter a start and an end date for a stay, a project, or a countdown, or switch to age mode with a birth date, and read every count at once.

All arithmetic happens in this page. Refresh the page and the inputs are gone, so use the copy button if you want to keep the answer; the copied text contains only the figures you can already see.

Related tools