Date & Time / CALCULATOR

Date Difference Calculator

Measure the calendar interval between two dates and the total elapsed days.

You may enter dates in either order; the result shows their absolute distance and indicates which date is earlier.

Your calculation

Enter your values below.

Your calculation is not saved.

Use a decimal point. For single values, enter 1500 rather than 1,500.
YOUR RESULT · Calculating…

Ready when
you are.

Enter your values and select Calculate.

Calculated with unrounded values. Display precision follows each result.

THE WORKING

How this calculator works

The earlier date is treated as the starting anchor. Whole calendar months are counted first, clamping the same day to a shorter month’s final day, then the remaining days are counted. Whole weeks are elapsed days divided by seven, rounded down. Dates are handled in UTC without time-of-day or daylight-saving adjustments.

The formula

Calendar months = largest whole-month shift from earlier date not after later date
Remaining days = days after that clamped anniversary
Years = whole months / 12, rounded down.

A quick example

From 31 January 2024 to 29 February 2024 the interval is 1 calendar month and 0 days, with 29 total days and 4 complete weeks.

How to use this calculator

  1. Enter the two dates, in either order.
  2. Calculate the calendar interval.
  3. Compare years/months/days with elapsed days, which answer a different question.

A few common questions

Does reversing the dates change the size?
No. Only the date-order label changes.
How are month ends counted?
The anchor day is clamped to the last valid day of a shorter month.
Is the end date counted as an extra day?
No. This measures elapsed days; use Days Between Dates for an inclusive counting option.

Was this calculator useful?

Report an issue

Recently used