Time & Date

Date Difference Calculator

Count days between two real dates, with an explicit choice to include both endpoints.

Private, in-browser calculationUpdated

Let’s work it out

Enter your numbers. We’ll show the working.

Gregorian calendar; years 1600–9999.
End must be on or after start.
Choose the convention for your inputs.

How to use this calculator

  1. Enter start date and the remaining values.
  2. Check the selected units and the counting or calculation convention described below.
  3. Select Calculate to review the result and breakdown. Reset restores the example.

The formula

Elapsed days = end-date ordinal − start-date ordinal; inclusive count = elapsed days + 1

Each Gregorian date maps to a day ordinal without a local time zone. The default excludes the start and includes the end. Inclusive mode counts both dates, so the same date has a count of one instead of zero.

PUTTING IT INTO PRACTICE

A worked example

February 28 to March 1, 2024 spans two elapsed days because February has 29 days. Counting both dates gives three calendar dates.

How to interpret your result

Use elapsed days for the length of an interval and inclusive counting when every listed date belongs to a booking or checklist. Confirm which convention your task requires.

Assumptions and limitations

Calendar dates only, no reversed intervals. Weeks are seven-day blocks, not named calendar weeks.

It does not count business days or account for time-zone travel. Use Business Days when weekends should be excluded.