A QUICK GUIDE
How to use date difference
Calculate a calendar date interval without time-zone or daylight-saving differences. The starting day is excluded from the count.
- Choose the start date.
- Choose the end date.
- Read the number of days. Reverse the dates to see the same interval as a negative number.
A month-end interval
January 1 to January 31 is 30 days. January 1 to January 1 is 0 days. February 28 to March 1 is 2 days in a leap year and 1 day in a non-leap year.
Good to know
- The calculation compares calendar dates using UTC and ignores times of day.
- It counts weekends and holidays. It is not a business-day or work-hours calculator.
- For an inclusive count of both calendar dates, add one to a non-negative interval.
Common questions
Will daylight saving time change the answer?
No. The calculation uses UTC calendar dates instead of the local time elapsed between midnights, so a 23-hour or 25-hour day does not affect the count.
Can the answer be negative?
Yes. An end date earlier than the start date gives a negative interval, which makes the direction of the comparison clear.