Date Difference Calculator

Calculate the exact number of days, weeks, months, and years between any two dates. Instant results with inclusive/exclusive options and quick date shortcuts.

1 minute Easy

How to Use This Calculator

  1. Enter the start date — type or use the date picker for the earlier date
  2. Enter the end date — type or use the date picker for the later date
  3. Include today — toggle to count today itself in the range if needed
  4. Click Calculate Difference to see days, weeks, months, and years between the dates

Date Range

The earlier date
The later date

Options

e.g. Jan 1 to Jan 3 = 2 days (exclusive) or 3 days (inclusive)
<div class="form-row date-shortcut-row">
  <div class="form-group">
    <label>Quick shortcuts</label>
    <div class="shortcut-buttons">
      <button type="button" class="shortcut-btn" data-action="today-plus-30">Today + 30 days</button>
      <button type="button" class="shortcut-btn" data-action="today-plus-90">Today + 90 days</button>
      <button type="button" class="shortcut-btn" data-action="year-start">Since Jan 1</button>
      <button type="button" class="shortcut-btn" data-action="year-end">Until Dec 31</button>
    </div>
  </div>
</div>

📅 Common Date Difference Uses

  • Project deadlines: Count how many days until a due date
  • Age calculation: Find exact days since a birthday
  • Event countdowns: Days until a wedding, vacation, or holiday
  • Contract durations: Verify exact term length in days or months
  • Loan periods: Days between disbursement and payoff date
  • Business planning: Weeks until end of quarter or fiscal year

🗓️ How Date Difference Is Calculated

The calculator subtracts the start date from the end date using UTC midnight timestamps to avoid daylight-saving errors. Results:

  • Days: Total calendar days between the two dates
  • Weeks: Whole weeks (days ÷ 7, floored) with remainder days
  • Months: Calendar months — accounts for different month lengths
  • Years: Full years elapsed, with remaining months and days

Inclusive vs exclusive: "Days between" is exclusive (Jan 1 → Jan 3 = 2 days). Toggle "include end date" to count the end day itself (= 3 days), useful when counting event nights or contract days.

Advertisement

If this calculator saved you time, consider supporting us!

Buy me a coffee

Frequently Asked Questions

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

Subtract the earlier date from the later date. The formula is: Days = End Date − Start Date. For example, January 1 to March 31 spans 89 days (31 + 28 + 31 − 1). Our calculator handles leap years, month-length variations, and daylight-saving edge cases automatically.

What is the difference between inclusive and exclusive day counting?

Exclusive counting (the default) counts the gaps between dates — January 1 to January 3 = 2 days. Inclusive counting adds the end date itself — January 1 to January 3 = 3 days. Use inclusive when counting event nights (e.g., a 3-night hotel stay), contract days, or subscription days. Use exclusive for 'how many days until' countdowns.

How many weeks are in a year?

A calendar year has exactly 52 weeks and 1 day (365 days ÷ 7 = 52.14 weeks), or 52 weeks and 2 days in a leap year (366 days). That's why the same date shifts by one weekday each year (two days after a leap year).

How do I count business days between two dates?

Business days exclude weekends (Saturday and Sunday) and public holidays. To estimate: take the total calendar days, subtract the number of Saturdays and Sundays in the range, then subtract any holidays. Our business days calculator handles this automatically if you need precise working-day counts.

How do I calculate someone's exact age in days?

Enter the person's birth date as the start date and today's date as the end date, then click Calculate. The result is their exact age in total days, weeks, months, and years. For example, someone born on June 20, 2000, turns exactly 26 years old on June 20, 2026 — that's 9,497 days.

Does daylight saving time affect the day count?

No. This calculator uses UTC midnight timestamps for both dates, so 'spring forward' and 'fall back' clock changes do not affect the result. The answer is always the correct number of calendar days regardless of time zone.

Related Topics:

date calculatordays between datesdate differencetime calculatorcountdown
Advertisement