Skip to main content
📆

Date Difference

Days, weeks, and months between two dates.

Date & TimeUpdated 2026-04-05Author: CalcDock Team, EditorialReviewed by: CalcDock Team, Editorial review: calendar vs business-day wording (Apr 2026)

The Date Difference Calculator answers one deceptively simple question: exactly how far apart are two dates? Enter a start date and an end date to get the precise gap in days, weeks, months, and years. This is most useful when the exact count matters — for project deadlines where contract language specifies "30 calendar days," for lease expiry calculations where one day off has legal consequences, for loan term verification, for checking how long until a visa or passport expires, or for confirming probationary periods and notice periods at work. The month count uses actual calendar months, not 30-day approximations — so the gap from January 1 to March 1 is exactly 2 months regardless of how many days are in January and February. A business days option (excluding weekends) is available for work-related calculations.

See also: Unit Conversion Mistakes: Common Errors and Fixes, Understanding Compound Interest (APR, APY, Compounding Frequency), Loan Repayment Methods: Equal Payment vs. Equal Principal, Mortgage Total Cost: Beyond Principal and Interest · D-Day Countdown, Age Calculator, Work Hours.

When this calculator helps most

Use when you control both endpoints and need exact calendar span — stronger than D-Day for arbitrary intervals.

What each input means

  • Start dateBeginning of the interval (often exclusive unless you toggle inclusive mode). (calendar)
  • End dateEnd of the interval; total span is computed between the two instants. (calendar)

Input mistakes to avoid

  • Swap start/end if you get a negative span — or interpret direction per your need.
  • Inclusive vs exclusive end dates: confirm which your policy uses.

Date Difference

🔒Inputs are processed in your browser and are not sent to our servers.

Formula

Total days = (end date − start date) in milliseconds ÷ 86 400 000. Weeks = total days ÷ 7. Calendar months and years are computed by walking month boundaries from the start date, accounting for varying month lengths and leap years.

Examples

Full Calendar Year — Jan 1 to Dec 31, 2024

How many days in a standard year vs a leap year.

365 days | 52 weeks + 1 day | 11 months, 30 days | 2024 is a leap year (366 days total, but Dec 31 is day 365 from Jan 1)

90-Day Contract Notice Period

Calculating the end of a 90-calendar-day notice period starting March 1.

89 days | Tip: add 1 day to include both start and end — 90 days ends May 30

Lease Expiry — 12-Month Tenancy

Verifying that a lease that starts April 15 runs exactly 12 months.

365 days | Exactly 12 calendar months | 52 weeks, 1 day

Project Timeline — Agile Sprint

Counting business days in a 2-week sprint (Mon Jan 6 to Fri Jan 17).

Calendar: 12 days | Business days: 10 | Exactly 2 working weeks

Historical Gap — Birth Year to Present

How many days since January 1, 1990.

13,232 days | 36 years, 2 months, 24 days | 1,890 weeks

How to read your results

  • Total days is the span in whole calendar days; weeks = days ÷ 7 (approximate grouping).
  • Months/years walk calendar boundaries — not fixed 30/365 shortcuts.
  • Business days exclude typical weekends; public holidays are not excluded unless your process says so.
  • Toggle inclusive endpoints when your contract counts both the first and last day.

What this result means

Outputs describe elapsed calendar structure between dates — verify legal documents with counsel if stakes are high.

Common Pitfalls

  • ⚠️Treating calendar months as 30 days — real months vary.
  • ⚠️Ignoring inclusive/exclusive endpoints in contracts.
  • ⚠️Using business-day mode without accounting for public holidays.
  • ⚠️Comparing spans across time zones without aligning dates.

Tips

  • For legal and contract purposes, clarify whether "days" means calendar days or business days — the difference can be 8+ days per month.
  • When calculating notice periods, confirm whether the start date counts as day 1 or day 0 — this shifts the end date by one day.
  • For visa and immigration purposes, always verify whether "days" are counted from date of arrival or the day after arrival.
  • Use the business days option for work deadlines and court filing deadlines, not just for scheduling meetings.
  • For loan terms, verify that your lender's calculation method (calendar days vs months) matches what this calculator shows.

How to check your results

  • For short ranges, count days on a calendar and match the tool.

Warnings & Limitations

  • ⚠️Statutes and contracts define “day” differently — confirm governing text.
  • ⚠️This tool does not know jurisdiction-specific holiday calendars.

What this calculator does not tell you

  • Legal interpretation of “month” or “business day” in your jurisdiction.
  • Holiday calendars — weekend-only business-day mode still ignores public holidays.

Frequently Asked Questions

How is the date difference calculated?

The calculator subtracts the start date from the end date to get total days. It then converts that number to weeks (÷ 7), calendar months (counting complete months between the dates), and years (counting complete 12-month periods). The month and year counts use calendar logic, not fixed 30/365-day approximations.

Does it include the start and end date in the count?

By default, the count is exclusive of the start date and inclusive of the end date — so the difference from Jan 1 to Jan 31 is 30 days. Toggle "include both dates" to add 1 to the count (useful for counting days in a range, like billing periods or rental days).

What is the difference between calendar days and business days?

Calendar days count every day including weekends and public holidays. Business days count only Monday through Friday, excluding weekends. A 30-calendar-day period contains approximately 22 business days. The calculator offers a business days option that excludes Saturdays and Sundays.

What are common uses for this calculator?

Contract review (verifying notice periods, delivery deadlines), legal proceedings (statute of limitations, court filing deadlines), HR administration (probationary periods, anniversary dates), finance (loan term verification, CD maturity), travel planning (visa duration, trip length), and project management (milestone tracking, sprint length).

How does it handle leap years?

Leap years are handled automatically. February 29 is counted as a real day when it falls within the date range. A 365-vs-366-day year difference is already reflected in the total day count — no manual adjustment needed.

How do I calculate the number of months between two dates accurately?

The calculator counts complete calendar months (e.g., Jan 15 to Mar 15 = exactly 2 months) plus any remaining days. It does not round to the nearest month or use a fixed 30-day month — it respects the actual length of each calendar month, making it accurate for lease, loan, and contract calculations.

Can I calculate the date difference for dates far in the past or future?

Yes. The calculator supports any valid Gregorian calendar date. This is useful for historical research, genealogy (years since a historical event), long-range planning (years to retirement or maturity date of a long-term bond), or calculating the age of a long-running project.

Sources & References

Report an issue with this calculator

Editorial & review note

Month and year parts use true calendar stepping—not 30/365 shortcuts—so lease and notice periods match wall calendars. Weekend-only “business day” mode still ignores public holidays unless you adjust dates manually.

Editorial Policy

Related Calculators

Related guides