Days Between Dates Calculator

Calculate the exact number of days, weeks, months, and years between any two dates.

Why calculate days between dates?

Calculating the exact number of days between two dates is needed for countless practical purposes: vacation planning, project timelines, loan periods, contract durations, age calculations, anniversary tracking, deadline countdowns, leave management, and historical research. While humans naturally think in months and years, many real-world calculations need precise day counts - interest accruals are often computed per day, hotel bookings count nights, insurance policies specify exact days, and legal deadlines run on calendar days. This calculator handles all the calendar complexity automatically (varying month lengths 28-31, leap years every 4 years with exceptions every 100 years and 400 years) to give you the exact day count plus useful breakdowns by weeks, months, and working days.

How to use this tool

  1. Pick the 'from' date — Click the first date picker and select day, month, year. The picker supports dates from 1900 onward.
  2. Pick the 'to' date — Same picker style. Can be in past or future relative to first date.
  3. Optional: include end date — Toggle to count both start and end dates (inclusive). E.g. 'Monday to Wednesday' is 2 days exclusive but 3 days inclusive.
  4. Read all the metrics — Total days, years/months/days breakdown, weeks, months, hours, working days (excludes weekends). All update instantly.

How calendar dates work

The calculator uses JavaScript Date objects which internally store time as milliseconds since January 1, 1970 (Unix epoch). To find days between dates:

Total days = floor((Date2 - Date1) / 86,400,000) (milliseconds per day)

For the year/month/day breakdown, the calculator does calendar arithmetic with borrow logic:

  1. Year diff = Y2 - Y1
  2. Month diff = M2 - M1 (borrow 12 from years if negative)
  3. Day diff = D2 - D1 (borrow days from previous month if negative)

Leap years are handled automatically - February 29 exists every 4 years except century years not divisible by 400 (so 2000 was a leap year, 1900 was not).

Working days = count of weekdays (Mon-Fri) between dates. Holidays not subtracted - this is a generic 5-day workweek count.

Examples

  • 1 Jan 2026 to 31 Dec 2026: 365 days (2026 is not a leap year)
  • 1 Jan 2024 to 31 Dec 2024: 366 days (2024 was leap)
  • Today (26 May 2026) to Christmas Dec 25: 213 days (around 7 months)
  • Marathon training: 1 June 2026 to 15 Oct 2026: 136 days = ~4.5 months = ~19.4 weeks
  • Visa duration: 14 Apr 2025 to 13 Apr 2026: 364 days (one day short of full year because end date is one day before)
  • Working days between 1-31 Jan 2026: 22 working days (31 days - 9 weekend days)
  • Wedding anniversary: 14 Feb 2020 to 14 Feb 2026: 6 years exactly (2,192 days including 2 leap days)

Tips & best practices

  • Always use the inclusive option for date ranges like 'check-in to check-out' nights at hotels - usually 1 less than calendar days
  • For project deadlines, count working days, not calendar days - 30 working days is actually ~6 weeks calendar time
  • Interest calculations on loans usually use 'actual/365' or 'actual/360' day counts - this calculator gives you actual days
  • When ordering products with X-day delivery promises, ask if those are calendar or business days - big difference
  • Vacation requests often count working days, not calendar days - your 2-week vacation is 10 working days = 14 calendar days
  • Insurance claims sometimes have day-based deadlines (30/60/90 days) - always use exact day count, not approximate months

Limitations & notes

Calculator uses the Gregorian calendar (worldwide standard since 1582). Dates before 1582 may not align with historical records using Julian calendar. Time zone effects are not considered - if dates span time zones, the day count may differ by 1 day. Holidays are not subtracted from working days - if you need to exclude specific holidays, calculate the working days count then subtract manually.

Frequently Asked Questions

How does the calculator handle leap years?

Automatically. The Gregorian calendar has a leap year every 4 years (Feb 29 exists), except century years that aren't divisible by 400. So 2000 was a leap year, 1900 wasn't. 2024 was a leap year. 2028 will be the next. The calculator includes Feb 29 in day counts when both dates span a leap year.

Should I check the 'inclusive' option?

Depends on your use case. For 'how many days am I on vacation' (Friday-Sunday = 3 days you're away), use inclusive. For 'how many hotel nights' (check-in Fri, check-out Mon = 3 nights), use exclusive (default). When in doubt, both numbers are shown.

What are 'working days'?

Days from Monday to Friday only - excludes Saturdays and Sundays. Doesn't account for public holidays since those vary by country and region. For exact business days excluding national holidays, manually subtract the relevant holiday count for your country (typically 8-15 per year).

Can I calculate a future date by adding days?

Not directly, but you can use date arithmetic in your head: if today is 26 May 2026 and you want 90 days from now, May has 31 days (so 5 more in May), then 30 in June, 31 in July leaves 14 days in August. 90 days from May 26 = August 24.

Does daylight saving time affect day counts?

No - day counts ignore DST. Each calendar day is counted as 1 day regardless of the 23-hour 'spring forward' day or 25-hour 'fall back' day. The total hours stat shows actual hours which would be 1 fewer or more on DST transition days.

What's the maximum date range the tool supports?

From 1 January 1900 to 31 December 2099 in the date picker. JavaScript Date objects technically support a range of ±100 million days from 1970, but the date picker UI is limited to keep it user-friendly.

Why doesn't the months count match years times 12?

Total months counts every complete month. If the period is 2 years 4 months 15 days, total months is 2*12+4 = 28 (the 15 extra days don't form another month). The years/months/days breakdown gives you the full picture.

Related tools

Age Calculator · Time Zone Converter · Pregnancy Due Date

Copied to clipboard