Days Between Dates Calculator

Counting days by hand sounds easy until you have to cross a month boundary, account for a leap year, or exclude weekends. This calculator handles all of it in one step — enter any two dates and get the exact duration in days, weeks, months, years, hours, minutes, and seconds. Toggle business-day mode to exclude weekends if you need working-day arithmetic.

Use it for project deadlines, contract durations, age-in-days, event countdowns, gestational age, time-since-an-anniversary, historical research, or any other situation where you need exact calendar arithmetic.

What does this calculator do?

Given two dates, the Days Between Dates Calculator tells you the exact duration between them. It accounts for:

  • Variable month lengths (28, 29, 30, or 31 days).
  • Leap years, including the 100-year and 400-year exceptions.
  • Date order — if you reverse the inputs, you still get a sensible positive duration.
  • Optional weekend exclusion for business-day counts.

How the calculation works

Under the hood, each calendar date is converted to a Julian Day Number — a continuous count of days since a fixed reference point. Subtracting one Julian Day Number from another gives an exact whole-day difference, which the calculator then expresses in multiple units:

  • Total days = the raw subtraction result.
  • Weeks = total days ÷ 7.
  • Years and months = calendar-aware decomposition (not a simple division — see the next section).
  • Hours, minutes, seconds = total days × 24, × 1,440, × 86,400 respectively.

Why "months" and "years" need care

Unlike days and weeks, calendar months don't have a fixed length. The duration from January 1 to February 1 is 31 days; from February 1 to March 1 is 28 (or 29). So when the calculator reports "1 year, 2 months, 5 days," it's doing a calendar walk — counting whole years first, then whole months, then leftover days — rather than dividing the total by an average month length.

This means two ways of expressing "months between dates" can both be correct:

  • Calendar months — count completed month-to-month anniversaries. Jan 15 to Mar 14 is "1 month and 27 days," not "2 months."
  • Equivalent months — total days ÷ 30.44 (the average month length). Useful for pro-rata pricing or statistical comparison.

Worked example: Mar 15 2024 to Aug 20 2026

  • Start date: March 15, 2024 (a leap year)
  • End date: August 20, 2026
  • Total days: 893
  • Total weeks: 127 (with 4 extra days)
  • Calendar breakdown: 2 years, 5 months, 5 days
  • Equivalent months: ~29.3
  • Business days only: ~638 (893 calendar days minus 255 weekend days)
  • Total hours: 21,432
  • Total minutes: 12,85,920

How to use this calculator

  1. Pick the start date. Click the date picker or type it directly. Both DD/MM/YYYY and MM/DD/YYYY are usually supported depending on your region.
  2. Pick the end date.
  3. Optionally enable business-day mode to exclude Saturdays and Sundays.
  4. Read the result in your preferred unit — days, weeks, months, calendar breakdown, or hours/minutes/seconds.

Quick reference: common date intervals

IntervalDaysWeeksMonths (approx)
1 standard year36552.1412
1 leap year36652.2912
6 months~182~266
1 quarter~91~133
30 days30~4.29~0.99
1 fortnight142~0.46
1 working year (260 weekdays)36552
1 working month (~22 weekdays)30–31~4.41
Pregnancy term (40 weeks)28040~9.2
Average human lifetime (78 yrs)~28,490~4,070~936

Leap years — the quick rule

A year is a leap year if:

  • It is divisible by 4, AND
  • It is NOT divisible by 100, UNLESS
  • It is also divisible by 400.

So 2024 was a leap year (div by 4, not by 100). 1900 was NOT a leap year (div by 100 but not by 400). 2000 WAS a leap year (div by 400). The next leap years are 2028, 2032, 2036.

Learn more in our dedicated Leap Year Calculator.

Common use cases

  • Project planning. "How many working days do I have until the deadline?" Use business-day mode.
  • Age and anniversaries. Birthdays, wedding anniversaries, work tenure — express in total days for fun milestones (10,000 days, 1 lakh hours, etc.).
  • Contracts and SLAs. Most legal contracts use calendar days; some use working days. Read the contract carefully and pick the right mode.
  • Pregnancy and gestational age. Standard clinical practice is to count from the last menstrual period (LMP). 280 days = 40 weeks = full term.
  • Visa and immigration durations. Most visa rules use calendar days. The Schengen "90 in 180" rule, for example, is a strict calendar-day count.
  • Subscription and trial periods. "30 days free" usually means 30 calendar days from signup.
  • Court filings and statutory deadlines. These almost always use business days and exclude government holidays. Use a holiday-aware tool for legal work.
  • Historical research. How many days between the moon landing (July 20, 1969) and today? Easy to find with this calculator.
  • Goal countdowns. "Marathon in 90 days," "exam in 45 days," "wedding in 200 days."

Calendar days vs business days

ContextTypical day count usedWhy
SLAs and customer-support response timesBusiness daysAligned with working hours
Credit card grace periodsCalendar daysBanks bill on calendar cycles
Loan EMI datesCalendar daysInterest accrues 365 days/year
HR leave policiesBusiness daysExcludes weekends and public holidays
Income tax filing deadlinesCalendar daysFixed date in the law
Court motion responsesBusiness daysProcedural rules of court
Visa staysCalendar daysImmigration law
Trade settlement (T+2)Business daysStock exchange convention

Common mistakes when counting dates

  1. Forgetting whether the count is inclusive or exclusive. "Five days from Monday" can mean either the same Friday or the following Saturday depending on the convention.
  2. Confusing calendar and business days. Many legal and HR disputes come down to this. Always confirm which the policy intends.
  3. Ignoring leap years. Spreading "365 days" across a year that includes February 29 leaves you one day short.
  4. Confusing months with weeks-of-4. Four weeks is 28 days; one month is 28–31. Pregnancy "10 months" vs "40 weeks" is the classic example of this.
  5. Mixing timezones. "Yesterday" in New York might still be "today" in Tokyo. For exact day counts, use timezone-agnostic date values.
  6. Off-by-one errors at midnight. A subscription that starts at 11:59 PM on Day 1 and ends at 12:01 AM on Day 31 has technically lasted "31 days" but functionally only 30. Date-only counts avoid this.

Tips for date arithmetic

  • Be explicit about the convention. "5 calendar days from today" leaves no doubt; "in 5 days" is ambiguous.
  • For long durations, use years + months + days. "2 years, 3 months, 14 days" is more meaningful than "830 days."
  • For short durations, use days + hours. Helps for event countdowns.
  • Use ISO format (YYYY-MM-DD) when sharing dates internationally to avoid DD/MM vs MM/DD confusion.
  • For recurring deadlines, anchor to a specific date. "First of every month" is unambiguous; "every 30 days" drifts across the calendar.

The bottom line

Counting days sounds trivial but the edge cases — leap years, inclusive vs exclusive counting, business days, month lengths — trip up almost every manual calculation. This calculator handles them all and lets you express the duration in whatever unit your situation calls for. Use it for deadlines, anniversaries, contracts, and any other piece of calendar arithmetic you don't want to redo on a notepad.