TodayMonday, October 5, 2026
Date calculators

Date Difference Calculator

Navjeet Kamboj
Created and maintained by Navjeet Kamboj
Author & editor · Age Calculator Lab
Date calculators · browser calculation

Date Difference Calculator

Compare two dates with calendar days, complete weeks and weekday counts. Choose whether to include the end date.

How to useCalculation methodRead the resultWorked exampleImportant conventionsFAQs

How to use date difference calculator

  1. Enter the two calendar dates in their intended order.
  2. Choose whether the final date belongs in the counted range.
  3. Calculate and read the signed total before the breakdown.
  4. Use the working-day tool if weekends or closures need to be excluded.

Compare two dates with calendar days, complete weeks and weekday counts. Choose whether to include the end date.

How the result is calculated

Elapsed calendar days = (end date at UTC midnight − start date at UTC midnight) ÷ 86,400,000

Signed results preserve the calculation’s direction. Read the sign before comparing its magnitude. Keep the inputs and the selected convention with the output so another person can reproduce it.

Read all calculation conventions

How to read your result

Keep the inputs and conventions beside the answer. These values explain what the result measures.

Result fieldMeaning
Calendar daysSigned midnight-to-midnight interval; include-end adds one named date in the range direction.
Complete weeksWhole seven-day groups, with remaining days shown separately.
Calendar periodCompleted year and month anniversaries plus remaining days. This is not a fixed-unit duration.
WORKED EXAMPLE

Leap-day interval

February 28, 2028 to March 1, 2028 contains two elapsed calendar days. Including the end date counts three named dates.

Try the example in the calculator above. Change one input at a time and compare the target, interval and selected rules. For a longer explanation read How to Calculate Days Between Dates Without Off-by-One Errors.

Conventions to keep with your result

Complete weeks are seven-day groups. Calendar months and years use anniversaries. Day-equivalent hours are a conversion of date counts rather than elapsed local clock hours.

Current dates keep moving forward. Today follows the selected calendar time zone. Rule-based Gregorian dates are generated for the requested year. A fixed input remains the visitor's chosen date. External holiday records require coverage for that year.

Date Difference Calculator: frequently asked questions

Why can the answer differ by one day?

Check whether the end date is included. An elapsed interval and an inclusive date count use different endpoint conventions.

Why is the result negative?

The end date is before the start date. The signed total preserves that direction.

Are complete months assumed to be 30 days?

No. They are measured with calendar anniversaries and month-end clamping.

Learn the method

All guides

Keep exploring

View the tool library
Navjeet Kamboj, author at Age Calculator Lab
About the author

Navjeet Kamboj

Author & editor · Age Calculator Lab

Navjeet Kamboj is the author and editor of Age Calculator Lab. He focuses on making age, date, milestone and planning calculations easier to understand through clearly explained methods, practical examples and responsible limitations.