Calculate the exact number of days, weeks, and months between any two dates. Shows weekday count, weekend count, hours, minutes, and seconds.
select two dates
Start date
End date
How to Use the Days Between Dates Calculator
Enter start date — select or type the beginning date of your date range.
Enter end date — select or type the ending date.
Click Calculate — see the exact number of days, weeks, months, and years between the two dates.
Include or exclude endpoints — toggle whether to count the start date, end date, or both in the total.
Read business days — the calculator shows weekdays only (excluding weekends) for business-relevant date calculations.
📅 Common uses: Calculating age in days. Days until a deadline, event, or vacation. Days since a significant date. Contract duration calculation. Days between historical events. Rental period billing. Loan term calculation. Project timeline planning. Any situation requiring precise counting of calendar days.
Understanding Calendar Calculations
📅 Why Day Counting Is Complex
Months have different lengths (28–31 days). Leap years add a day every 4 years (with exceptions for century years not divisible by 400). Time zones affect 'which day' it is simultaneously. Business day calculations must account for weekends and public holidays (which vary by country). These factors make manual day counting error-prone for anything beyond a few weeks.
🗓️ The Gregorian Calendar
The current standard calendar, introduced by Pope Gregory XIII in 1582. Corrects Julian calendar's slight overestimation of year length. Rules: leap year if divisible by 4, EXCEPT century years (1800, 1900), UNLESS divisible by 400 (2000). This produces an average year of 365.2425 days — matching Earth's actual orbit period with an error of 1 day per 3,030 years.
📊 Business Days vs Calendar Days
Business days (working days) exclude weekends (Saturday and Sunday in most Western countries), public/bank holidays (varying by country and region). Contract terms often specify 'business days' — 5 business days is not 5 calendar days. For international contracts, specify which country's business day calendar applies. Payment terms in many countries are always in business days (invoices: Net-30 business days).
🕐 Inclusive vs Exclusive Counting
Ambiguity in date counting: 'from Monday to Friday.' Exclusive: Monday to Friday is 4 days (Mon, Tue, Wed, Thu). Inclusive: 5 days (Mon through Fri). The difference matters for legal contracts, billing periods, and deadline calculation. Always specify whether endpoints are included. Many legal contracts explicitly state 'the first day shall be counted as day zero.'
📅 Historical Date Calculation
Comparing dates across calendar system changes is complex. Britain switched from Julian to Gregorian calendar in September 1752 (11 days were 'lost'). Different countries switched at different times. George Washington's birthday was February 11 (Julian) = February 22 (Gregorian) — both dates are 'correct' depending on calendar context. Historical date calculations require specifying which calendar system.
⏰ Day Counting in Finance
Finance uses specific day count conventions affecting interest calculations: Actual/365: divide actual days by 365 (UK gilt bonds). Actual/360: actual days by 360 (US money market). 30/360: assumes every month is 30 days (US corporate bonds). These conventions produce different results for the same period — knowing which convention applies is essential for accurate interest calculation.
Practical Date Calculation Applications
Project and deadline management
Accurate date calculation prevents project overruns and missed deadlines. Count forward from start date to delivery date to confirm sufficient time. Count backward from deadline to today to see how many days remain. Calculate working days (excluding weekends) for realistic workload planning — a project assigned on Friday due in '5 days' is due Wednesday, not Tuesday. For international teams, holiday calendars differ — a 10-business-day timeline may actually be 2+ calendar weeks when accounting for holidays in all team members' countries.
Legal and financial date counting
Legal documents specify exact date calculation methods. Statute of limitations begins from the date of injury or discovery — calculating whether a claim is time-barred requires exact day counting. Lease agreements: notice periods (typically 30 or 60 days) start from the day after notice is given, not the day of notice. Credit card payment due dates are calendar dates, but 'grace periods' are often business days. Always calculate critical legal and financial dates carefully — errors can have significant consequences.
Historical duration analysis
Days between dates enables historical duration analysis: how long did a war last (World War II: September 1, 1939 to September 2, 1945 = 2,193 days). How old was a historical figure when they achieved something. How long between scientific discoveries. How much time has passed since a historical event. These calculations provide context that 'approximately X years' doesn't capture — a 2,193-day war has different texture than '6 years.'
📅 Quick date calculation reference: 1 week = 7 days. 1 month ≈ 30.44 days (average). 1 quarter = 91–92 days. 1 year = 365 days (366 in leap years). 1 decade = 3,652 or 3,653 days. 1 century = 36,524 days (36,525 if includes a century leap year like 2000). 1,000 days ≈ 2 years 8.5 months. 10,000 days ≈ 27.4 years. 1 million seconds ≈ 11.6 days. These conversions enable quick mental date estimation.
Inclusive or Exclusive?
Use exclusive for "how much time has passed"
Age, time-until-event, and elapsed-time questions normally use exclusive counting — the calendar difference between two dates, not counting either endpoint twice.
Use inclusive for "how many days does this span cover"
Hotel-night-style counting, "how many days is this event," or payroll/billing periods often need inclusive counting — both the start and end date counted as full days.
Both figures are shown so you don't have to guess
This calculator shows both the exclusive and inclusive day counts explicitly labeled, rather than picking one convention silently.
How the Duration Is Calculated
Days (exclusive) = calendar days between the two dates. Months = calendar months between them, adjusted for day-of-month so a partial month never outweighs a fuller one.
Worked example
From January 31 to February 1 (1 calendar day apart): months = 0, since a full calendar month hasn't elapsed — the day-of-month adjustment prevents this from misleadingly showing "1 month" for a single day. From January 1 to March 1 (a full 2 calendar months later, same day-of-month): months = 2 exactly.
Avoid These Mistakes
Assuming a month is always ~30 days
Calendar months range from 28 to 31 days — for precise legal, financial, or contractual purposes, always work from actual calendar dates, not a flat 30-day assumption.
Forgetting which counting convention you need
"3 nights in a hotel" (inclusive-style span) and "3 days until my flight" (exclusive elapsed time) are different questions — check which figure this tool's output matches your actual need before using it.
Not accounting for leap years in long-range calculations
A year is 365 or 366 days depending on the leap year — this calculator works from actual calendar dates so leap years are automatically handled correctly, but manual estimates using "365 days/year" won't be.
Frequently Asked Questions
How are days between dates calculated?
The calculator finds the absolute difference between two dates in milliseconds, then divides by 86,400,000 (milliseconds in a day). Weekdays are counted by iterating through each day and checking if it falls on a Monday–Friday.
What counts as a business day?
Business days (weekdays) exclude Saturdays and Sundays. This calculator does not exclude public holidays, which vary by country. For legal and contract purposes, always check whether holidays are excluded in your specific jurisdiction.
How many days until a specific date?
Set the start date to today and the end date to your target date. The calculator shows the exact number of days, weeks, and months remaining, along with a breakdown of weekdays and weekends.
References
📅 Gregorian Calendar
Leap year rules (every 4 years, except centuries not divisible by 400) follow the standard Gregorian calendar used internationally — this calculator's date arithmetic is built on JavaScript's native Date handling, which correctly implements these rules.
📄 Your specific contract or jurisdiction
For legal, payroll, or contractual date calculations, confirm whether your specific context uses inclusive or exclusive counting and whether public holidays are excluded — conventions vary and this tool doesn't know your jurisdiction's holiday calendar.