Date Difference Calculator

Calculate the exact time between two dates in years, months, days, weeks and business days.

Date details

Start date

—

End date

—

Business-day share

0%
Business-day estimates exclude weekends only; national and regional holidays are not removed.

Date milestones

See selected day milestones measured from the start date.

MilestoneDateCalendar days elapsedStatus

Use our free Date Difference Calculator to find the exact difference between two dates. Enter a start date and an end date to calculate the time between them in days, weeks, months, and years.

Whether you want to know how many days have passed since an event, how long a project lasted, or how much time remains until a future date, this calculator makes date calculations quick and easy.

What Is a Date Difference Calculator?

A Date Difference Calculator determines the amount of time between two calendar dates.

Depending on the calculation method and the information you need, the difference can be expressed as:

  • Total days
  • Total weeks
  • Months
  • Years
  • Years, months, and days

For example, if you enter January 1, 2025 and January 1, 2026, the difference is 1 year or 365 days because 2025 is not a leap year.

Date calculations can become more complicated when the dates cross different month lengths or include a leap year. An online calculator handles these calendar rules automatically.

How to Use the Date Difference Calculator

Using the calculator is simple:

  1. Enter the start date.
  2. Enter the end date.
  3. Click the Calculate button.
  4. Review the difference between the two dates.
  5. Use the result in the unit that best fits your calculation.

You can use dates in the past, present, or future depending on what you want to calculate.

How Is the Difference Between Two Dates Calculated?

For a basic difference in calendar days, the calculation is essentially:

Date Difference = End Date − Start Date

The result represents the number of days separating the two dates.

For example:

Start date: January 1, 2026
End date: January 31, 2026

The elapsed difference is 30 days.

Microsoft Excel also supports date-difference calculations using ordinary date subtraction and the DATEDIF function. DATEDIF can return complete years, months, or days between two dates.

How Many Days Are Between Two Dates?

The number of days between two dates depends on the actual calendar dates.

For example:

  • January 1 to January 10 = 9 days
  • January 1 to February 1 = 31 days
  • March 1 to April 1 = 31 days
  • January 1 to January 1 of the following year = 365 days in a non-leap year

The calculator is useful because months do not all contain the same number of days. Depending on the dates involved, a month can contain 28, 29, 30, or 31 days.

Date Difference in Days

If you only need the total number of days, the simplest approach is to subtract the earlier date from the later date.

Formula:

Number of Days = Later Date − Earlier Date

For example:

June 1, 2026 → June 15, 2026

The elapsed difference is:

14 days

This type of calculation is useful for deadlines, project durations, subscriptions, payment periods, and other date-based calculations.

Date Difference in Weeks

There are 7 days in a week, so a total day difference can be converted into weeks using:

Weeks = Total Days ÷ 7

For example, if two dates are 35 days apart:

35 ÷ 7 = 5 weeks

If the number of days is not evenly divisible by 7, you can express the result as complete weeks plus remaining days.

For example:

30 days = 4 weeks and 2 days

Date Difference in Months

Calculating months between dates is more complicated than simply dividing the number of days by 30 because calendar months have different lengths.

January has 31 days, February has 28 or 29 days, and several other months have 30 or 31 days.

Therefore, a calendar-based month difference should consider the actual dates rather than assuming every month has exactly 30 days.

For applications that require a precise calendar interpretation, the years-months-days breakdown is generally more meaningful than treating every month as the same number of days.

Date Difference in Years

A simple year calculation can be affected by leap years and the exact dates being compared.

For example:

January 1, 2025 → January 1, 2026 = 1 year

But a year can contain either 365 or 366 days depending on whether it is a leap year.

This is why calculating a date difference directly from calendar dates is preferable to always assuming that one year equals exactly 365 days.

Years, Months, and Days Between Two Dates

Sometimes a total number of days is not the most useful answer.

For example, someone may want to know:

“How long have I worked at this company?”

A result such as:

5 years, 4 months, and 12 days

is easier to understand than a large total number of days.

A calendar-based calculation can determine complete years first, then complete months, followed by the remaining days. Different tools may use slightly different conventions for handling dates near the end of a month, so the calculation method matters.

Date Difference Example

Suppose you want to calculate the difference between:

Start date: March 15, 2024
End date: August 20, 2026

The calendar difference can be broken down as:

  • March 15, 2024 → March 15, 2026 = 2 years
  • March 15, 2026 → August 15, 2026 = 5 months
  • August 15, 2026 → August 20, 2026 = 5 days

So the calendar breakdown is:

2 years, 5 months, and 5 days

The total number of calendar days is another way of expressing the same time interval.

Inclusive vs. Exclusive Date Difference

One important detail is whether you want to count the starting and ending dates themselves.

Exclusive counting

Exclusive counting measures the elapsed gap between two dates.

For example:

January 1 → January 2 = 1 day

This is commonly what people mean when they ask how many days are between two dates.

Inclusive counting

Inclusive counting includes both the starting and ending dates.

For example:

January 1 through January 2 = 2 calendar days

The difference between inclusive and exclusive counting is usually one day.

This distinction can matter for contracts, notice periods, bookings, attendance, billing periods, and other date-sensitive calculations. Always check the counting convention required for your particular situation.

Why Leap Years Matter

A leap year contains 366 days instead of 365 because February has an additional day.

This can affect calculations that span February 29.

For example, a date difference crossing a leap day will contain one additional calendar day compared with an otherwise similar period that does not include February 29.

A reliable date calculator should work from the actual calendar dates rather than simply assuming every year contains 365 days.

Date Difference vs. Age Calculation

A Date Difference Calculator and an Age Calculator are closely related, but they serve different purposes.

A date difference calculator compares any two dates.

An age calculator typically compares a person’s date of birth with a current or selected date and expresses the result as an age.

For example, you can use a date difference calculator to determine:

  • Time between two events
  • Project duration
  • Length of a contract
  • Time since a specific date
  • Time until a future event

For someone’s age, an Age Calculator may provide a more specialized result.

Common Uses for a Date Difference Calculator

A date difference calculator can be useful in many situations.

Project planning

Calculate how long a project lasted or how much time remains before a deadline.

Work experience

Calculate the duration between a joining date and another date.

Contracts and agreements

Determine the length of a contract, lease, subscription, or notice period.

Event planning

Find the number of days until a wedding, vacation, meeting, anniversary, or other event.

Financial calculations

Determine the number of days between financial dates when a calculation requires a specific date interval.

Personal milestones

Calculate how long it has been since an important event or how long until a future milestone.

Date Difference Calculator for Past Dates

You can compare two historical dates to determine the amount of time that passed between them.

For example:

January 1, 2020 → January 1, 2025

The difference is:

5 years

You can also calculate the total number of days between the dates when a precise day count is required.

Date Difference Calculator for Future Dates

You can also use the calculator for future dates.

For example, if you have a project deadline, vacation, anniversary, or other upcoming event, enter today’s date as one date and the future event date as the other.

The result tells you how much time separates the two dates.

Date Difference in Excel

You can calculate date differences in Excel in several ways.

For a simple total-day calculation, if the start date is in cell A1 and the end date is in cell B1, you can use:

=B1-A1

Excel also provides the DATEDIF function for calculating complete years, months, and days between dates. Microsoft documents "d" for days, "m" for complete months, and "y" for complete years.

For example:

=DATEDIF(A1,B1,"d")

returns the total number of complete days between the two dates.

Using an online Date Difference Calculator can be faster when you simply need the answer without creating a spreadsheet formula.

Common Date Difference Calculation Mistakes

When calculating the difference between two dates, watch for these common mistakes:

1. Confusing the date format

Dates can be written differently depending on the country. For example, 05/06/2026 may be interpreted differently depending on whether the format is DD/MM/YYYY or MM/DD/YYYY.

2. Forgetting leap years

A leap year contains 366 days, which can change the result when the date range crosses February 29.

3. Assuming every month has 30 days

Months have different lengths, so dividing days by 30 does not always produce an exact calendar-month difference.

4. Confusing inclusive and exclusive counting

Counting both endpoints produces a different result from measuring only the elapsed gap.

5. Reversing the dates

Make sure you understand which date is the start date and which is the end date, especially when calculating durations or deadlines.

Frequently Asked Questions

What is a Date Difference Calculator?

A Date Difference Calculator calculates the amount of time between two dates. Depending on the calculator, the result can be displayed in days, weeks, months, years, or a years-months-days breakdown.

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

Enter the earlier and later dates and subtract the earlier date from the later date. For a simple calendar-day difference, the basic formula is:

Days = Later Date − Earlier Date

How many days are in a year?

A standard calendar year has 365 days. A leap year has 366 days.

How many weeks are between two dates?

Divide the total number of days by 7. For example, 28 days equals 4 weeks.

Can I calculate months between two dates?

Yes. However, calendar months have different lengths, so an exact month calculation should use the actual calendar dates rather than assuming every month contains the same number of days.

Does the Date Difference Calculator account for leap years?

A calendar-based calculation should account for the actual dates involved, including February 29 in a leap year.

What is the difference between date difference and age?

Date difference compares any two dates. Age calculation is a specialized type of date difference that usually compares a person’s birth date with a selected date.

Does the calculator count the start and end date?

That depends on the calculation convention used by the tool. An elapsed difference normally measures the gap between dates, while an inclusive calculation counts both endpoints. Check which method the calculator uses before applying the result to contracts, billing, attendance, or other formal calculations.

Can I calculate the difference between future dates?

Yes. A date difference calculator can compare past, present, and future dates.

Why can two date calculators show different results?

Different calculators may use different conventions, especially for inclusive counting and for expressing a result in months and days. The exact total-day calculation and the calendar years-months-days breakdown are not always interchangeable.

Date Difference Calculator: Quick Reference

Calculation Basic approach
Days between dates Later date − earlier date
Weeks Total days ÷ 7
Years Based on calendar dates
Months Based on calendar months
Inclusive days Include both start and end dates
Years, months, days Count calendar units in sequence

Related Calculators

If you are working with dates, time, or financial calculations, you may also find these calculators useful:

  • Age Calculator – Calculate your exact age from your date of birth.
  • Percentage Calculator – Calculate percentages and percentage changes.
  • Salary Calculator – Estimate salary and take-home pay.
  • Loan Calculator – Estimate loan payments and interest.
  • Investment Calculator – Estimate investment growth and returns.
  • Retirement Calculator – Estimate retirement savings and income.
  • Savings Calculator – Estimate savings growth over time.

Final Notes

Our Date Difference Calculator is designed to make date calculations faster and easier. It can help you find the time between two dates without manually counting calendar days or accounting for different month lengths.

For legal, financial, employment, contractual, or official purposes, always confirm whether the required calculation uses calendar days, business days, inclusive counting, or another specific convention.

Disclaimer

This calculator is provided for general informational and educational purposes. Date calculations may use different conventions depending on the application. For legal, financial, employment, tax, contractual, or official calculations, verify the applicable rules and counting method before relying on the result.