Utility calculator
Date Difference Calculator
Compare two calendar dates. The day count says how far the end date is from the start date, and the range count includes both dates.
Date difference
Compare two calendar dates
The count uses calendar dates. A daylight-saving day that lasts 23 or 25 hours is still one date.
Result
From the start date to the end date
2 days later
Calendar dates in the range
3 dates
Weeks in the day count
0 weeks, 2 days
Calendar span
0 years, 0 months, 2 days
Day count
2
The day count is how far the end date is from the start date. The range count includes both dates. March 1 to March 3 is 2 days later and covers 3 calendar dates.
March 3, 2024 is 2 days later than March 1, 2024. The range includes 3 calendar dates. From March 1, 2024 to March 3, 2024 is 0 years, 0 months, 2 days.
How it works
The day count is the end date's calendar day number minus the start date's. March 1 to March 3 is 2 days later. The same date is 0 days away. Reversing the dates makes the day count negative.
The range count includes both ends. March 1, March 2, and March 3 are 3 calendar dates. A single date includes 1 calendar date. The weeks line splits the absolute day count into weeks and leftover days. It uses the day count, so March 1 to March 3 is 0 weeks and 2 days.
The calendar span uses the same anniversary rule as the age calculator. January 31, 2024 to March 1, 2024 is 30 days later, which is 0 years, 1 month, and 1 day, because one month after January 31, 2024 is February 29, 2024. Where local clocks follow the United States daylight-saving schedule, the local day that starts on March 8, 2026 has 23 hours and the local day that starts on November 1, 2026 has 25 hours. Each is still one calendar day. Places that do not change the clock that night keep a 24-hour day, and the calendar count is still one day.
Formulas
The day count excludes nothing inside the gap and does not count the start date. The range count adds the start date back.
- Days from start to end = the end date's calendar day number minus the start date's
- Calendar dates in the range = the absolute day count + 1
- March 1, 2024 to March 3, 2024 = 2 days later, and 3 calendar dates
- January 31, 2024 to March 1, 2024 = 30 days, or 0 years, 1 month, and 1 day
Worked examples
March 3, 2024 is 2 days later than March 1, 2024. The range includes 3 calendar dates.
The day count is the dates crossed. Adding the start date makes the inclusive count one larger.
March 1, 2024 is 30 days later than January 31, 2024, which is 0 years, 1 month, 1 day.
One month after January 31, 2024 is February 29, 2024. March 1 is one calendar day after that.
FAQ
What is the difference between the day count and the inclusive count?
The day count is how many days the end date is after the start date. March 1 to March 3 is 2. The inclusive count includes both ends, so those dates cover 3 calendar dates. The same date is 0 days away and includes 1 calendar date.
Why is January 31 to March 1 described as 1 month and 1 day?
One month after January 31, 2024 is February 29, 2024, the last day of that February. March 1 is one calendar day later. The whole gap is 30 days.
Do time zones or daylight saving time change the number of days?
No. The calculator compares calendar dates. March 8, 2026 to March 9, 2026 is one calendar day even where that local day has 23 hours, and November 1, 2026 to November 2, 2026 is one calendar day even where that local day has 25 hours.
Which calendar is used?
The proleptic Gregorian calendar. A year divisible by 4 is a leap year, except a year divisible by 100 is a leap year only when it is also divisible by 400. 1900 is not a leap year. 2000 is.