Date, Time & Health

Date & time calculator

Date Difference Calculator

Calculate the number of days, weeks, months, and years between any two dates. Perfect for project deadlines, countdowns, anniversaries, and duration tracking.

Updated 3 June 2026No sign-in requiredDate, Time & Health calculator

Enter Your Numbers

Start year.

Start month (1 = January).

Start day.

End year.

End month (1 = January).

End day.

Total Days

2,341

Total calendar days between the two dates.

Total Weeks

334.0

Total weeks (with decimal).

Years

6

Complete years in the difference.

Months (Remainder)

4

Remaining months after complete years.

Days (Remainder)

28

Remaining days after complete months.

Total Hours

56,184

Approximate total hours (days × 24).

Report an issue

The same gap shown in different units

Approximate conversions of the difference between your two dates. The total-days value is the most precise.

UnitApproximate value
Years (whole)6
Months (total)76
Weeks (total)334
Days (total)2,341
Hours (approx.)56,184

How It Works

Dates are converted to a floating-point day count using 365.25 days per year and 30.4375 days per month.

Difference = |End date − Start date| using day-count conversion (365.25 days/year, 30.4375 days/month)
  • The absolute difference gives total days regardless of which date is earlier.
  • Years, months, and remaining days are extracted by successive integer division.
  • Hours = total_days × 24 (does not account for daylight saving or time zones).

Worked Example

Difference between January 1, 2020 and May 29, 2026:

From date

January 1, 2020

To date

May 29, 2026

Total days

~2,341 days

Total weeks

~334 weeks

Years

6 years

Months (remainder)

4 months

Days (remainder)

~28 days

Over 6 years have passed between these dates — roughly the length of a typical undergraduate and graduate program combined.

How to Use the Date Difference Calculator

What this calculator does

This tool measures the gap between any two calendar dates and shows it several ways at once: total days, total weeks, and a years-months-days breakdown. It is built for deadlines, anniversaries, contract terms, project timelines, and any "how long between these two dates" question.

Enter a start date and an end date and the calculator does the arithmetic for you, including across leap years. Because it returns the absolute difference, you do not have to worry about which date is earlier.

Inclusive vs exclusive day counts

By default this calculator gives an exclusive count — the number of days between the two dates, not counting one of the endpoints. For example, from the 1st to the 4th is 3 days.

If you need an inclusive count, where both the first and last day are counted (common when working out how many days an event or stay lasts), simply add 1 to the total days. Knowing which convention you need avoids the classic "off by one" error.

How leap years are handled

A common year has 365 days and a leap year has 366. To keep results consistent across spans that include leap days, the calculator treats a year as 365.25 days and a month as roughly 30.44 days on average.

This averaging means the total-days figure stays accurate within about a day over long spans, while the years-and-months breakdown is a clean, human-readable approximation rather than an exact calendar walk.

How to read your result

Use total days when you need precision — for interest periods, notice periods, or countdowns. Total weeks is handy for scheduling in weekly cycles, and the years-months-days breakdown is the most natural way to describe a long gap out loud.

The total-hours figure simply multiplies days by 24. It does not adjust for daylight saving time, so treat it as a clock-hours estimate rather than an exact elapsed time.

Common mistakes and practical tips

The most common mistakes are the off-by-one (forgetting whether you need an inclusive count) and entering the month as a name instead of a number. Use 1 to 12 for the month fields.

For contract or notice periods, decide upfront whether the first day counts, then apply the inclusive or exclusive rule consistently. To count only working days, see the related business days calculator, since this tool counts every calendar day including weekends.

Limitations to keep in mind

Results are approximate because month and year lengths are averaged rather than stepped through one real month at a time. Over very long spans an individual figure can differ from an exact calendar by about a day.

The calculator does not validate impossible dates such as February 30, and it ignores time of day and time zones. For legal, financial, or official deadlines, confirm the figure against an exact calendar computation.

Assumptions & Best Uses

  • Uses 365.25 days/year and 30.4375 days/month for leap year averaging.
  • Returns absolute difference (order of dates does not matter).

Limitations

  • Results are approximate due to averaging of leap years and month lengths.
  • Does not account for time zones or DST changes.
  • Does not validate invalid calendar dates (e.g. Feb 30).

Frequently Asked Questions

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

Enter both dates in this calculator and read the "Total Days" result. Alternatively, convert both dates to a Julian Day Number and subtract.

How many days are in a year?

A common year has 365 days; a leap year has 366. The average over 400 years is exactly 365.2425 days (Gregorian calendar).

Can I calculate business days between two dates?

This calculator counts all calendar days (including weekends). To count business days, subtract approximately 2/7 of the total days.

How many days are in 6 months?

Approximately 182–183 days, depending on which 6 months. February is shortest (28 or 29 days); January, March, May, July, August, October, and December each have 31 days.

Does the result include both the start and end dates?

This calculator returns the gap between the two dates (an exclusive count). If you need to include both endpoints — for example, counting how many days an event runs — add 1 to the total days.

Does it matter which date I enter first?

No. The calculator returns the absolute difference, so swapping the "from" and "to" dates gives the same number of days. The result is never negative.

Why are years, months, and days not just the total days split evenly?

Calendar months and years vary in length, so the breakdown uses averaged lengths (about 30.44 days per month, 365.25 per year). The total-days figure is the most precise; the years and months are a readable approximation of the same gap.

Sources & References

Figures on this page are checked against primary, authoritative sources. Links open in a new tab.

Related Calculators

Note

This calculator is provided for general informational and educational use. Double-check important results before relying on them.

Built and maintained by Calculator Matters, an independent calculator project. Method checked against published formulas and primary sources · Last reviewed 3 June 2026 · How we calculate · Found an error? corrections@calculatormatters.com