Skip to content
The Calculatorz
Dates & time

Date Difference Calculator

Find the calendar and total-day difference between two dates.

The ordinary elapsed difference excludes an extra inclusive end day. The end date must be on or after the start date.

Start and end dates

Date range

How to use this calculator

Select the earlier start date and the later end date. The result shows total elapsed days, weeks and a calendar years-months-days breakdown.

Formula

Total days = (end date − start date) ÷ 86,400,000 milliseconds per day. Calendar components borrow days and months where needed.

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

Is the end date counted as a full additional day?

No. The tool reports elapsed time between the two date boundaries.

Why can calendar months and total days look different?

Months have different lengths, so calendar components are not fixed 30-day blocks.

Does daylight saving affect the result?

No. Date-only values are compared at UTC midnight to avoid daylight-saving shifts.

How do I count business days between two dates?

Count only weekdays and subtract public holidays. This calculator counts all calendar days, so business days will usually be fewer.

How many days are in a year?

A common year has 365 days and a leap year has 366. Leap years occur every four years, except century years not divisible by 400.

How many days are there between two dates including both?

This calculator counts elapsed days, which leaves out one end. To count both the start and end dates, add one day to the result: 1 March to 10 March is 9 elapsed days, or 10 days inclusive.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. Reingold, E. M., & Dershowitz, N. (2018). Calendrical calculations: The ultimate edition (4th ed.). Cambridge University Press. View source
  2. International Organization for Standardization. (2019). ISO 8601-1: Date and time—Representations for information interchange—Part 1: Basic rules. View source
  3. Lombardi, M. A. (2002). NIST time and frequency services (NIST Special Publication 432). National Institute of Standards and Technology. View source
  4. Bureau International des Poids et Mesures. (2019). The International System of Units (SI) (9th ed.). View source
  5. Thompson, A., & Taylor, B. N. (2008). Guide for the use of the International System of Units (SI) (NIST Special Publication 811). National Institute of Standards and Technology. View source