Calculators · FREE ONLINE TOOL

Date Duration Calculator

Find the calendar-day difference between two dates, with weeks and a years, months, and days breakdown. Choose whether to include the end date.

Interactive workspace

The workspace uses JavaScript. Read the instructions, method, and worked results while it becomes available.

Read the worked examples

How to use Date Duration Calculator

  1. Enter the start and end dates.
  2. Leave Include end date off for elapsed days, or enable it to count both boundary dates.
  3. Calculate and compare total days with the calendar-unit breakdown.

What is Date Duration Calculator?

A day difference counts the boundaries between two dates. A calendar breakdown describes the same interval using complete years and months plus remaining days; months are not treated as a fixed number of days. Reversed dates retain their direction in the total, while the breakdown describes the magnitude of the interval.

  • Total days and weeks between dates
  • Calendar years, months, and remaining days
  • Optional inclusive end-date counting
  • Leap-year and reversed-date handling

Elapsed days or counted dates?

For an interval from February 28 to March 1 in a leap year, two midnight boundaries elapse, but three named dates occur. The two examples below keep the dates identical and change only the inclusive option, making the difference visible.

A negative total signals that the end precedes the start. The calendar-unit breakdown still describes the absolute interval. Do not read that positive breakdown as evidence that the entered dates were in chronological order.

Worked examples you can try

Each example uses illustrative inputs. Load its named preset in the calculator above, then calculate to compare with the expected result.

Two elapsed days

Leap day lies between the start and end dates.

INPUT
February 28 → March 1, 2024
Include end date: off
EXPECTED RESULT
2 days
0 years, 0 months, 2 days

Count both endpoint dates

The same dates give three counted days when the end is included.

INPUT
February 28 → March 1, 2024
Include end date: on
EXPECTED RESULT
3 days
0 years, 0 months, 3 days

Learn a little more

Calendar days, date differences, and month-end arithmeticMeasure BCE and CE intervals with an explicit calendarResolve missing and repeated local times in timestamp data

Frequently asked questions

Are the start and end dates included?

By default the tool reports elapsed days, so equal dates give zero. Include end date adds one counted day to the interval's magnitude; equal dates then count as one day.

Why do months not equal 30 days?

Calendar months contain 28, 29, 30, or 31 days. The breakdown advances through real calendar units rather than dividing by a fixed month length.

Can the end date be earlier?

Yes. The total indicates a backward interval. The years, months, and days breakdown shows the interval's absolute size.