Date Difference Calculator

Count the calendar days between two dates. See the difference in days and weeks, including whether the end date falls before or after the start.

Enter two dates

The direction of the dates is preserved so you can see whether the second date is before or after the first.

Your result

Date difference

Updates automatically as you change the inputs.

Date-based result
Loading your local date…

How to use the date difference calculator

Choose the start and end dates. The calculator uses calendar-day boundaries and reports the signed difference as well as the absolute number of days.

Date difference method

Calculation formulaDate difference method
Used for the result above
Day difference = UTC-normalized end date − UTC-normalized start date, divided by 86,400,000 milliseconds per day.

Using date-only UTC values prevents daylight-saving clock changes from turning a calendar day into a 23- or 25-hour interval.

Example: Jack counts the days in a booking interval

Jack checks the interval from January 1 to January 31, 2026. The result is 30 elapsed calendar days, or 4 weeks and 2 days.

Counting both January 1 and January 31 as included dates would give 31 dates. This tool uses the elapsed difference and does not add an extra day for inclusive counting.

Understand which days are counted

January 1 to January 2 is one elapsed calendar day. Two identical dates give zero. If you need to count both endpoint dates, add one to a nonnegative elapsed difference.

Weekends and holidays count. The signed difference shows whether the second date is before or after the first; the main result shows the absolute difference.

Calendar days, inclusive days and working days

From October 1 to October 2 there is one elapsed calendar day. Counting both dates as included produces two named dates instead. Decide which convention your booking or schedule uses before reading the total.

Weekends and holidays are ordinary calendar days in this tool. A business-day calculation needs a separate holiday calendar. For hours between clock times, use the Time Duration Calculator.

Assumptions and limitations

What the estimate assumes

This counts calendar-day boundaries, not business days or working days.

Date Difference Calculator FAQs

Does this include the start date?

The difference is the elapsed number of calendar days between the date values. Two identical dates have a difference of zero.

Does daylight saving time affect the result?

The calculation normalizes date-only values so DST clock shifts do not add or remove a calendar day.

Can the result be negative?

Yes. A negative signed result means the end date is before the start date.

Does this count weekdays only?

No. It counts all calendar days.

Calendar-day calculator. Business-day, holiday, and legal deadline rules are not applied.