Calculator NetworkFree Online Calculators

Date Difference Calculator

Calculate the number of days, weeks, months, and years between two dates.

Count both dates by adding one day. Elapsed calendar duration remains unchanged.

Quick Examples

Choose an example to fill the calculator, then select Calculate.

Date calculations are performed locally in your browser.

How to Calculate Days Between Two Dates

Use this date difference calculator to find the number of days between two dates. The date duration calculator also expresses the interval in calendar years, months, weeks, and days, helping you compare dates and plan project schedules.

  1. Enter the starting date.
  2. Enter the ending date.
  3. Choose whether to include the end date in the day count.
  4. Select Calculate Difference to view the results.

Date Difference Formula

The elapsed day count is the difference between the calendar day numbers of the ending and starting dates.

Elapsed days = End day number minus Start day number

Inclusive days = Elapsed days + 1

Calendar years and months are calculated separately because months have different lengths and years may contain 365 or 366 days.

Example: Calculating Days Between Two Dates

Start date
January 1, 2026
End date
November 27, 2026
Elapsed days
330 days
Inclusive days
331 days
Calendar duration
10 months, 26 days

Elapsed Days vs. Inclusive Days

From January 1 to January 2, one calendar day has elapsed. However, counting both January 1 and January 2 gives two dates.

Use elapsed days to measure the interval between dates. Use inclusive counting when both the starting and ending dates must be counted, such as counting the dates covered by a multi-day event.

The inclusive option changes the total day count, weeks, and time equivalents. It does not change the elapsed calendar duration in years, months, and days.

Leap Years and Calendar Months

The Gregorian calendar includes an extra day in February during leap years. Years divisible by 100 are not leap years unless they are also divisible by 400.

For example, February 28 to March 1 spans two days in a leap year and one day in a non-leap year.

When calculating completed calendar months, this calculator uses the last valid day of a destination month if the original day does not exist. January 31 to February 28 therefore counts as one completed calendar month in a non-leap year.

Converting Days Between Dates into Hours and Minutes

This calculator works with dates rather than exact timestamps. Hours, minutes, and seconds are mathematical equivalents based on 24 hours per counted day.

Actual elapsed hours may differ when daylight-saving changes or time zones are involved. Weekends and public holidays are included in the calendar day count.

Frequently Asked Questions

How many days are between two dates?

Enter both dates and select Calculate Difference. With inclusive counting disabled, the result displays the total elapsed calendar days. Enable inclusive counting to count both dates.

Does the calculator include the end date?

By default, the result measures elapsed days. Enable the inclusive option to count both the starting and ending dates.

What if both dates are identical?

The elapsed day count is zero. Inclusive counting produces one day.

Are weekends included?

Yes. The calculator counts all calendar days, including weekends and holidays.

Can I calculate future date differences?

Yes. Both dates may be in the future, provided the ending date is not before the starting date.

Are my entered dates sent to a server?

No server request is needed to perform the calculation. The calculation runs locally in your browser.

Related Calculation

To count working days between dates while excluding weekends and selected holidays, use the business days calculator.