← Back to Blog

Date Difference Calculator: Days, Weeks, and Months Between Dates

Calculate the exact number of days, weeks, or months between any two dates. Find business days between dates, exclude weekends, and plan project timelines.

Date Difference Calculator: Days, Weeks, and Months Between Dates

Calculating the Difference Between Two Dates

Date differences are needed for project planning, contract durations, travel countdowns, and deadline tracking.

Calendar Days

Days = End Date - Start Date (inclusive or exclusive)

Example: 2026-03-01 to 2026-06-15
March: 31 days (from Mar 1)
April: 30 days
May:   31 days
June:  15 days
Total: 106 days

Business Days

Subtract Saturdays and Sundays from total
Also exclude public holidays if needed

106 calendar days ≈ 75 business days
(106 - 2×15 weekends = 76 days approx,
 minus any holidays in that range)

Expressing the Difference

106 days = 15 weeks + 1 day
         = 3 months + 14 days (approx)
         = ~3.5 months

Real-World Applications

  • Contract notice periods (30/60/90 day clauses)
  • Loan term calculation
  • Project planning and sprint scheduling
  • Travel days calculation for visa requirements
  • Countdown to events (wedding, exam, holiday)

Calculate date differences: Free Date Difference Calculator

Date Difference Quick-Reference Table

FromToDaysWeeksMonths (approx.)
2025-01-012025-12-3136452.012
2024-02-012024-03-01294.141 (leap year Feb)
2020-01-012025-01-011,827261.060
2000-01-012025-01-019,1321,304.6300

How Date Difference Calculations Work

The simplest date difference counts calendar days between two dates. A business-day calculator excludes weekends (and optionally public holidays). Converting days to complete months is ambiguous — months have 28–31 days, so "months between dates" typically counts complete calendar months plus remaining days. Converting to years uses the same birthday-subtraction logic as age calculators.

Under the hood, date libraries convert dates to a serial number (days since a fixed epoch — Excel uses January 1, 1900; Unix systems use January 1, 1970). Subtraction gives the day difference exactly. Leap years are automatically handled because the serial numbers already incorporate them. Date arithmetic is essential in project management (deadline calculations), finance (bond coupon periods, day-count conventions), and legal contexts (contract term calculations).

Common Mistakes

  • Inclusive vs. exclusive end date: "From January 1 to January 3" is either 2 days (exclusive end) or 3 days (inclusive both ends). Clarify which convention you need — event durations typically include both start and end days.
  • Business days vs. calendar days: Contract deadlines, payment terms, and legal notice periods typically mean business days (Mon–Fri, excluding holidays). A "30-day" payment term starting on a Friday due in 30 business days ends much later than 30 calendar days.
  • Time zone errors for cross-midnight events: An event starting at 11 PM in New York and ending at 2 AM in London — 3 hours later — spans 1 calendar day in New York, 0 in London. Always specify the reference time zone for precise day-boundary calculations.

Frequently Asked Questions

Q: What are common day-count conventions in finance?

Bond interest calculations use day-count conventions that define how months and years are counted. Actual/Actual (used for US Treasuries) counts real calendar days. 30/360 (used for corporate bonds) assumes 30-day months and 360-day years — simplifying calculations. Actual/360 (used for money market instruments) counts actual days but divides by 360. Choosing the wrong convention changes the interest calculation, which matters on large loan balances.

Q: How do I calculate how many Fridays are between two dates?

Find the total days between the dates, divide by 7, and adjust for the starting day of week. In code: generate all dates in the range and count those where weekday = Friday. Alternatively: (end_date − first_friday_after_start) ÷ 7 + 1. For quick estimates, assume 1 Friday per 7 calendar days.

Q: How many days until a future date?

Subtract today's date from the target date to get calendar days remaining. Project management tools call this the "countdown." Many deadlines are set in business days — to convert: divide calendar days by 5/7 (weekday fraction), then subtract holidays in the period. Online tools automate this; for manual calculation, use a calendar to count business days explicitly for precision.