DATE & TIME TOOLS

Date Difference Calculator

How many days between two dates? Calculate exact calendar days, weeks, months and years instantly.

✓ Auto calculations✓ Leap-year aware✓ Free & private
FREE DATE CALCULATOR

Find the difference between two dates

Choose any two dates. Your results appear instantly.

NO SIGN-UP
First date to compare
Today's date — updates automatically
QUICK RANGES
Auto-calculates — no button needed
▦

Your date difference appears here

Choose the start date, or select a quick range to see days, weeks, months and years.

✓ Instant calculation  ·  Your dates are calculated in your browser  ·  No account needed

DATE CALCULATION GUIDE

What is a date difference calculator?

A date difference calculator finds the amount of calendar time separating any two dates. It answers questions like “How many days between two dates?” and can also express that span in complete weeks, calendar months and years.

Use it for upcoming events, anniversaries, project timelines, school terms, travel dates and other date comparisons. Unlike an age-only tool, neither date needs to be a birth date. Both dates can be historical or in the future.

How to calculate days between two dates

Enter your start and end dates above. Your result appears immediately—there is no Calculate button. If you are working backward, use Swap or simply leave the dates reversed; the tool calculates their absolute difference.

  • Total calendar days: The elapsed gap between the two dates, without adding an extra day for the end date.
  • Weeks and days: Every complete group of seven counted days, plus the remainder.
  • Years, months and days: Completed calendar anniversaries from the earlier date to the later date.
  • Optional time: Elapsed hours and minutes using the local time zone on your device.
Total elapsed days = later calendar date − earlier calendar dateFor date-only calculations, dates are compared at UTC midnight so daylight saving transitions do not change the count of calendar days.

Example: days between January 1 and January 31

From January 1 to January 31, 2026, the elapsed calendar difference is 30 days. If you need to count both January 1 and January 31, enable inclusive counting: the inclusive day count is 31 days.

Start dateJan 1, 2026
End dateJan 31, 2026
Elapsed days30 days (31 inclusive)

Inclusive vs. exclusive day counting

Two common approaches give different results. Elapsed (exclusive-end) counting measures the number of date boundaries crossed. For example, Monday to Tuesday is one day. Inclusive counting counts each named date in the span, including both endpoints. In that example, Monday and Tuesday count as two dates.

Our checkbox changes the counted day total, completed weeks and decimal weeks. It does not change the underlying elapsed years–months–days breakdown. This makes the two conventions clear rather than mixing incompatible answers.

Calculate months and years between two dates

A month is not always 30 days. February may have 28 or 29 days, while other months have 30 or 31. Our calculator counts completed calendar months rather than dividing the total days by an estimated month length. For month-end anniversaries such as January 31, it uses the last available day in shorter months.

For example, January 31 to February 28, 2025 is treated as one completed calendar month under this convention. Different software or contract-specific rules may define month anniversaries differently, so check the convention required for official work.

Leap years and date differences

If a date range crosses February 29, the extra day is included automatically. A leap year has 366 days, normally every four years, except most years divisible by 100; years divisible by 400 remain leap years. That means 2000 was a leap year but 2100 will not be.

Because calendar-date subtraction includes those extra days, you do not have to manually adjust date ranges that cross February in a leap year.

Difference between two dates in hours and minutes

Enable Include time of day to add clock-time inputs. The tool then calculates actual elapsed hours and minutes using the browser’s local time zone, including daylight saving transitions where applicable. These values may differ from calendar days multiplied by 24.

Time mode uses your device’s time zone, not the original locations of historical events. If the events occurred in different time zones, you should first convert them to a common zone or use a dedicated time-zone converter.

Where a two date difference calculator is useful

Count days until a holiday or a trip; measure the time from a project start to a delivery date; compare two historical events; or determine how many full weeks have passed since an anniversary. For a person’s exact calendar age, visit our Age Calculator. For the gap between two people’s birthdays, try the Age Difference Calculator.

Frequently asked questions

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

Select a start date and end date. The calculator subtracts their Gregorian calendar-day positions and shows the total elapsed calendar days. It accounts for month lengths and leap days automatically.

Does the calculator include the end date?

By default, the elapsed day difference does not count the end date as an additional day. Turn on ‘Count both start and end dates’ when you need an inclusive day count; it adds one day even if both dates are the same.

How many weeks are between two dates?

Divide the selected day count by seven. For example, 100 elapsed calendar days are 14 full weeks and 2 days. The displayed full weeks and decimal weeks follow the inclusive option if you enable it.

How are months between two dates calculated?

Completed calendar months are counted by moving forward month by month from the earlier date, clipping anniversaries to the final day in shorter months. The result also shows remaining days. Months do not all last the same number of days.

Can I calculate the difference between future dates?

Yes. Either date can be in the past or future, within the supported Gregorian range of 1900 through 2199. If you enter the end date before the start date, the calculator displays the absolute difference and explains that the dates were reversed.

Does this date duration calculator handle leap years?

Yes. The calendar-day arithmetic includes February 29 whenever it occurs within the interval. It also applies the Gregorian century rule: 2000 is a leap year, whereas 1900 and 2100 are not.

Why can elapsed hours differ from total days times 24?

When the optional time-of-day fields are enabled, hours and minutes are computed from local date-time values on your device. Daylight saving changes can create 23-hour or 25-hour days. Without time mode, days are calendar-date differences, not a measured physical duration.

What is the difference between a date difference calculator and an age calculator?

A date difference calculator works with any two dates, such as project deadlines, travel dates or anniversaries. An age calculator specifically works from a date of birth to an as-of date, often adding birthday information.

Can I use inclusive day counting for contracts or legal deadlines?

The inclusive option can help with simple counting, but official deadlines may use special rules about business days, holidays, time zones or which date to include. Check the applicable contract, law or authority rather than treating this as a legal determination.

Is the two date difference calculator free and private?

Yes. The calculations take place in your browser, without requiring an account. The dates entered into this calculator are not submitted to a calculation server.