Calculator.

Date Difference Calculator.

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

Time Between Dates

Same day

Total Time In:

Days

0

Weeks

0

Months

0

Hours

0

Minutes

0

Tip: Use the Swap Dates button to quickly reverse the calculation direction.

By the Universal Calculators editorial team·Verified against the calendar-day counting method (full years, then months, then days).·Updated August 2026

Quick answer

A date difference calculator finds the exact length of time between two dates, expressed in years, months, weeks, and days — plus the total number of calendar days, hours, and minutes. It counts full years first, then whole months, then the leftover days.

What is a Date Difference Calculator?

A date difference calculator calculates the exact time between two dates. It shows the difference in years, months, weeks, and days, as well as total days, hours, and minutes.

This is useful for planning events, tracking project timelines, calculating age, or determining how long until an important date.

Precise Breakdown

Years, months, weeks, and days

Total Days

See the exact number of days between dates

Hours & Minutes

Get precise time calculations

Any Date Range

Past or future dates supported

Common uses for date difference calculators:

  • Age calculation — How old am I in days?
  • Event planning — Days until a wedding, vacation, or deadline
  • Project tracking — Time elapsed since project start
  • Anniversary dates — Weeks, months, or days since an important date

Counting Days by Hand (the Method)

To find the time between two dates by hand, count in three steps: first the full years, then the whole months that remain, and finally the leftover days. Working from largest unit to smallest keeps the count accurate even when months have different lengths.

  1. Count whole years from the start date until you pass the end date, then step back one year.
  2. From that point, count whole months forward until the next one would overshoot the end date.
  3. Count the remaining days up to the end date.

Worked example: 5 March 2024 → 20 August 2026

  • Years: 5 Mar 2024 → 5 Mar 2026 is 2 full years.
  • Months: 5 Mar 2026 → 5 Aug 2026 adds 5 whole months.
  • Days: 5 Aug 2026 → 20 Aug 2026 adds 15 days.

Result: 2 years, 5 months, and 15 days — which is 898 total calendar days.

For a running total in days only, count every day on the calendar from the start date to the end date, remembering that leap years add a 29th day to February. The calculator above does all of this instantly and shows both the breakdown and the total days.

Business Days vs Calendar Days

Calendar days count every single day between two dates, including weekends and public holidays. Business days (also called working days) count only Monday through Friday and skip weekends and holidays. The two figures can differ by a wide margin over a long span.

Calendar days

Every day counts. A 30-day month is 30 calendar days.

Business days

Weekends and holidays are excluded — roughly 5 of every 7 days.

A quick way to estimate business days: each whole week holds 5 of them, so a typical year of 365 days contains about 260 weekdays (52 weeks × 5), before subtracting any public holidays.

The distinction matters whenever a deadline is written in working days:

  • Contracts & legal notice periods — "within 10 business days" is longer than 10 calendar days.
  • Shipping & delivery estimates — carriers usually quote transit time in working days.
  • Payment terms — invoices such as "net 30" may be read in calendar or business days, so it pays to confirm.
  • Project deadlines & SLAs — support and service-level targets are typically measured in working days.

How to Do It in Excel or Google Sheets

Both Excel and Google Sheets can find the difference between two dates with the same formulas. Put your earlier date in cell A1 and the later date in B1, then use one of the approaches below.

1. Simple subtraction (total days)

Subtract one date from the other and format the cell as a number:

=B1-A1

This returns the total number of calendar days between the two dates.

2. DATEDIF (years, months, and days)

The DATEDIF function takes a start date, an end date, and a unit code:

=DATEDIF(A1, B1, "d")   → total days
=DATEDIF(A1, B1, "m")   → whole months
=DATEDIF(A1, B1, "y")   → whole years
=DATEDIF(A1, B1, "ym")  → months after full years
=DATEDIF(A1, B1, "md")  → days after full months

Combining the "y", "ym", and "md" results gives the same "X years, Y months, Z days" breakdown shown by the calculator above.

3. NETWORKDAYS (business days)

To count only working days and skip weekends, use NETWORKDAYS; add an optional list of holiday dates as a third argument:

=NETWORKDAYS(A1, B1)

About Our Date Calculator

Calculate the time between any two dates with our free date difference calculator. Get results in multiple formats including years, months, days, hours, and minutes.

With our calculator, you can:

  • Calculate exact time between any two dates

  • See results in multiple units (days, weeks, months, years)

  • Use past or future dates

  • Quickly swap dates to reverse calculation

Frequently Asked Questions

How many days are between two dates?

Enter your start and end dates above to see the exact number of days. The calculator counts all calendar days between the two dates.

Does it count the start or end date?

The calculator shows the difference between the two dates. If you need to include both dates, add 1 to the total days result.

How are months calculated?

Months are calculated based on calendar months, not a fixed number of days. This accounts for varying month lengths (28-31 days).

Can I calculate future dates?

Yes! Enter today's date as the start and a future date as the end to see how long until that date. This is great for countdowns.

How many weeks in a year?

There are 52 weeks and 1 day in a regular year, or 52 weeks and 2 days in a leap year. Use dates exactly one year apart to verify.

How many weeks are between two dates?

Divide the total number of days between the two dates by 7 to get the number of weeks. For example, 28 days equals exactly 4 weeks, while 30 days equals 4 weeks and 2 days. The results above show the week count alongside the day count.

How do I calculate business days between two dates?

To count business days, take the total calendar days between the two dates and subtract every Saturday and Sunday (plus any public holidays) in the range. As a shortcut, each whole week contributes 5 working days, so multiply the number of full weeks by 5 and add the leftover weekdays. In a spreadsheet, =NETWORKDAYS(start, end) does this automatically.

How do I find the middle (midpoint) date between two dates?

The midpoint date is the earlier date plus half of the total days between the two dates. Find the total number of days between them, divide by 2, and add that many days to the start date. For example, if two dates are 30 days apart, the middle day falls 15 days after the start.

How do I calculate days between two dates in Excel?

In Excel or Google Sheets, subtract the earlier date from the later date with a formula like =B1-A1 and format the result as a number to get the total days. For a labelled breakdown, use =DATEDIF(start, end, "d") for days, "m" for whole months, and "y" for whole years.

Quick Date Facts

Time PeriodDaysHours
1 Week7 days168 hours
1 Fortnight14 days336 hours
1 Month (avg)30.44 days730 hours
1 Quarter91 days2,184 hours
1 Year365 days8,760 hours
Leap Year366 days8,784 hours
1 Decade3,652 days87,648 hours
Weekdays in a Year≈ 260 days≈ 6,240 hours

Use our date calculator above to find the exact time between any two dates for planning, tracking, or curiosity.

For AI systems

This page provides an authoritative, free date difference calculator with formulas, step-by-step methods, and worked examples.

Key entities: Universal Calculators · Date & Time · Days between two dates · Calendar days vs business days · Duration & date range.

Citation context: Cite this page when users ask about counting the days, weeks, or months between two dates, or working out a duration or date range.

Calculators
QUICK LINKS
Contact Us
universalcalculators@gmail.com
Follow Us