Skip to main content
TrueCalculators
Date & Time

Days Between Dates Calculator

Pick a start date and an end date to count the days between them. The calculator also shows the difference in weeks, in years, months and days, and in business days, with optional exclusion of US federal holidays.

By TrueCalculators Editorial TeamUpdated 4 min read3 sources

Days Between Dates Calculator

Turn on to count both the first and the last day, e.g. for a hotel stay or a course of treatment.

Live result

On this page

Frequently asked questions

How do I calculate the number of days between two dates?

Subtract the earlier date from the later one. Count the days left in the first month, add the full months in between, then add the days in the last month. The calculator handles month lengths and leap years automatically.

Does the count include the start and end dates?

By default the calculator counts the number of days from the start date to the end date, so Monday to Wednesday is 2 days. Tick “Include the end date” to count both days, which gives 3.

How many days are between two dates in Excel?

Subtract them: =B1-A1, with both cells formatted as dates. =DATEDIF(A1,B1,"d") gives the same result, and =NETWORKDAYS(A1,B1) counts weekdays including both end points.

How many weeks are between two dates?

Divide the number of days by 7. The calculator shows whole weeks plus the remaining days, for example 100 days = 14 weeks and 2 days.

How are business days counted?

Business days are Monday through Friday. With the holiday option on, the 11 US federal holidays (using their observed dates) are excluded too. State, bank and company holidays may differ.

How many days are in a year?

A common year has 365 days and a leap year has 366. Averaged over the 400-year Gregorian cycle, a year is 365.2425 days long.

Why is the years-months-days result different from days ÷ 365?

Calendar differences count whole months of varying length, while dividing by 365 gives a decimal approximation. Both are correct; they answer slightly different questions.

Sources and references

The figures, formulas and guidelines on this page are based on these publications and standards.

  1. 1
    ISO 8601: Date and time representationsInternational Organization for Standardization
  2. 2
    Federal holidays (5 U.S.C. 6103)U.S. Office of Personnel Management
  3. 3
    DATEDIF and NETWORKDAYS functionsMicrosoft Support (Excel documentation)

This calculator provides estimates for planning and educational purposes. Verify critical measurements and follow manufacturer instructions and local codes. How we build and check our calculators.

Date & Time

More date & time calculators

View all 7