Date Difference Calculator — How Many Days Between Two Dates?
How many days between two dates? Enter any start & end date → get exact days, weeks, months & years instantly. Includes business days & leap years. Free, no signup.
Popular Date Difference Questions
These are the most common date calculations people search for. Use the calculator above to get live answers for today's date:
| Question | Target Date | How to Calculate |
|---|---|---|
| How many days until Christmas? | December 25 | Enter today → Dec 25 of current/next year |
| How many days until New Year's? | January 1 | Enter today → Jan 1 of next year |
| How many weeks between two dates? | Any end date | Divide total days by 7 (shown automatically) |
| How many days until my birthday? | Your birthday | Enter today → your next birthday date |
| How many days since a date? | Past date | Enter past date → today |
| How many weeks pregnant am I? | Last menstrual period | Enter LMP date → today (divide days by 7) |
| How many days until my wedding? | Wedding date | Enter today → your wedding date |
| How many business days between dates? | Any end date | Shown automatically alongside calendar days |
The calculator gives you the answer in days, weeks, months, hours, and minutes — all at once.
How Date Difference Is Calculated
Calculating the exact difference between two dates requires careful handling of varying month lengths, leap years, and calendar rules. The process:
- Convert both dates to a common unit (e.g., total days from a reference point like January 1, 1970)
- Subtract the earlier date's day count from the later date's day count
- Convert the result back into years, months, weeks, and days
Example calculation: From March 15, 2020 to November 8, 2025:
- Total days: 2,064 days
- = 5 years, 7 months, 24 days
- = 294 weeks and 6 days
- = 2,064 days
Why this is tricky manually: Months have 28, 29, 30, or 31 days. A month-based calculation from March 15 to April 15 is "1 month" regardless of whether that span is 31 or 28 days. Our calculator handles all these edge cases automatically.
Leap Year Rules: When February Has 29 Days
Correct date calculations require understanding leap years. The Gregorian calendar rules are:
- A year divisible by 4 is a leap year (e.g., 2024 ✓)
- Exception: Century years (divisible by 100) are NOT leap years (e.g., 1900 ✗)
- Exception to the exception: Century years divisible by 400 ARE leap years (e.g., 2000 ✓)
So: 2000 = leap year ✓, 1900 = not a leap year ✗, 2100 = will NOT be a leap year ✗.
| Year | Divisible by 4? | Century year? | Divisible by 400? | Leap Year? |
|---|---|---|---|---|
| 2024 | Yes | No | — | ✓ Yes |
| 2025 | No | No | — | ✗ No |
| 2100 | Yes | Yes | No | ✗ No |
| 2000 | Yes | Yes | Yes | ✓ Yes |
| 1900 | Yes | Yes | No | ✗ No |
Over 400 years, there are exactly 97 leap years, making the average year 365.2425 days long — closely matching the actual solar year of 365.2422 days.
Business Days vs Calendar Days
For many practical purposes (contracts, deadlines, project planning), you need business days (working days) rather than calendar days:
Business days = Calendar days − Weekends − Public holidays
In a standard 5-day workweek, a 30-calendar-day period has approximately 22 business days (subtracting ~8 weekend days, minus any holidays).
| Calendar Days | Approximate Business Days (US) |
|---|---|
| 7 days (1 week) | 5 business days |
| 14 days (2 weeks) | 10 business days |
| 30 days (1 month) | ~22 business days |
| 90 days (1 quarter) | ~65 business days |
| 365 days (1 year) | ~261 business days |
Important: US federal holidays reduce this further. There are 11 federal holidays, bringing the actual US business days per year to approximately 250. Different countries have different public holidays — UK has 8 bank holidays, Germany has 9–13 (varies by state), France has 11.
Practical Uses for Date Difference Calculation
Knowing the exact number of days between dates is essential in many real-world situations:
- Legal and financial deadlines: Contracts often specify payment within "30 days" or "net 60" — precision matters for avoid default or missed deadlines. Many states calculate statutes of limitations to the day.
- Loan interest calculation: Many loans accrue interest daily. Knowing the exact number of days helps verify interest charges. A 1-day difference on a $500,000 commercial loan can be $100+.
- Project management: Project milestones are measured in calendar or business days. A 90-day software project starting March 1 ends May 30 (calendar) or about June 2 when excluding weekends.
- Medical dosing and treatment schedules: Antibiotic courses (7, 10, 14 days), pregnancy milestones (weeks since last menstrual period), and cancer treatment cycles all require precise date tracking.
- Anniversaries and events: Counting down days to weddings, birthdays, or retirements.
Age, Duration, and Date Arithmetic: Common Calculations
Here are common date math scenarios with worked examples:
| Scenario | Start | End | Result |
|---|---|---|---|
| Days in 2024 (leap year) | Jan 1, 2024 | Dec 31, 2024 | 366 days |
| Days until retirement (age 65 from DOB Mar 15, 1970) | Mar 11, 2026 | Mar 15, 2035 | 3,292 days |
| 90-day contract deadline | Jan 15, 2026 | + 90 days | April 15, 2026 |
| Weeks of pregnancy (LMP Nov 1) | Nov 1, 2025 | Mar 11, 2026 | 19 weeks, 0 days |
| Investment holding period (capital gains) | Oct 5, 2024 | Oct 6, 2025 | 366 days (long-term threshold met) |
US Capital Gains tax note: Long-term capital gains rates apply to assets held for more than 365 days. The difference between 364 and 366 days can change your tax rate from up to 37% (short-term, ordinary income rates) to 0%, 15%, or 20% (long-term rates). Exact date arithmetic matters.
Julian Day Number and Date Arithmetic Internals
Behind the scenes, date arithmetic software (including our calculator) works by converting each date to an absolute day count, performing arithmetic, then converting back. The most common standard is the Julian Day Number (JDN), which counts days from January 1, 4713 BC.
More commonly in computing, dates are stored as the number of days (or milliseconds) since a reference date called the Unix epoch: January 1, 1970 at 00:00 UTC.
- January 1, 2000 = Day 10,957 since the Unix epoch
- January 1, 2026 = Day 20,454 since the Unix epoch
This is why date subtraction is simple in programming: March 11, 2026 (day 20,527) minus March 15, 2020 (day 18,336) = 2,191 days.
Why the Gregorian calendar is awkward: Unlike metric units where everything divides by 10, calendar arithmetic involves irregular months (28–31 days), variable leap years, and base-60 time. No wonder people reach for a calculator!
Date Calculations in Programming and Spreadsheets
Whether you work in Excel, Google Sheets, Python, or JavaScript, date arithmetic follows the same principles — but each platform has its own syntax and gotchas.
Excel and Google Sheets: Dates are stored internally as serial numbers (days since January 1, 1900 in Excel, or December 30, 1899 in Google Sheets). This means subtracting two date cells gives you the difference in days directly. Key formulas:
| Task | Formula | Example Result |
|---|---|---|
| Days between dates | =B2-A2 | 365 |
| Months between dates | =DATEDIF(A2,B2,"M") | 12 |
| Years between dates | =DATEDIF(A2,B2,"Y") | 1 |
| Add 90 days to a date | =A2+90 | Apr 15, 2026 |
| Business days between | =NETWORKDAYS(A2,B2) | 261 |
The DATEDIF function is undocumented in Excel but fully functional — it calculates differences in complete years ("Y"), months ("M"), or days ("D") between two dates.
Python (datetime module): Python's datetime library handles date subtraction natively. Subtracting two date objects returns a timedelta object with a .days attribute. For business day calculations, the numpy.busday_count() function or the pandas.bdate_range() method are the standard tools.
JavaScript: The built-in Date object stores dates as milliseconds since the Unix epoch (January 1, 1970). Subtracting two Date objects gives milliseconds, which you divide by 86,400,000 to get days. Be cautious with time zones — new Date('2026-03-15') may be interpreted as UTC midnight, which can shift the result by one day depending on the user's local time zone.
Common pitfalls across all platforms:
- Inclusive vs. exclusive counting: Does "from March 1 to March 3" equal 2 days or 3? Most date subtraction gives 2 (exclusive of start), but some legal and contractual definitions count both endpoints (inclusive), yielding 3.
- Time zone shifts: Daylight Saving Time can add or subtract an hour, causing date subtraction near midnight to occasionally be off by one day.
- Month arithmetic ambiguity: "One month after January 31" — is that February 28 or March 3? Different libraries handle this differently, and the answer genuinely depends on context.
Historical Calendar Reforms and Missing Days
When calculating date differences that span centuries, you may encounter historical calendar anomalies that affect accuracy:
The Gregorian Calendar Reform (1582): When Pope Gregory XIII reformed the Julian calendar, 10 days were removed. In Catholic countries, October 4, 1582 was followed immediately by October 15, 1582. People who went to bed on Thursday, October 4 woke up on Friday, October 15. Those 10 days simply do not exist in the Gregorian calendar.
Adoption varied by country: Protestant and Orthodox nations adopted the Gregorian calendar much later. Britain and its colonies (including America) did not switch until September 1752, when 11 days were skipped — September 2 was followed by September 14. Russia did not adopt it until 1918 (13 days skipped), and Greece waited until 1923.
This means that a date like "February 15, 1700" has a different meaning in England (still using the Julian calendar) than in Spain (already using Gregorian). Historical date calculations across countries require knowing which calendar was in effect at the time.
The Year Start Problem: Before 1752, England counted the start of the new year as March 25 (Lady Day), not January 1. So February 1, 1700 in English records was actually February 1, 1700/01 (1701 in modern reckoning). George Washington's birthday is recorded as February 11, 1731 (Old Style) but is celebrated as February 22, 1732 (New Style).
For any date calculation involving dates before 1923, be aware that the Julian-to-Gregorian conversion may affect your result by up to 13 days. Our calculator uses the proleptic Gregorian calendar (extending Gregorian rules backward), which is the modern standard for computation but does not reflect the actual historical calendar used at the time.
💡 Did you know?
- The Gregorian calendar was introduced by Pope Gregory XIII in October 1582 to correct a 10-day drift that had accumulated in the Julian calendar since 325 AD.
- Leap years occur every 4 years — except for century years not divisible by 400. That's why 1900 was not a leap year, but 2000 was.
- The longest possible gap between two Friday the 13ths in any given year is exactly 14 months.
Frequently Asked Questions
How many days until Christmas?
Christmas is December 25. To find the days until Christmas, use the calculator above: set the start date to today and the end date to December 25 of the current year (or next year if Christmas has passed). The result shows you the exact days, weeks, and hours until Christmas. As an example, if today is March 16, there are 284 days until December 25.
How many weeks between two dates?
Divide the total number of days between the two dates by 7. Our calculator shows weeks automatically. For example, 90 days = 12 weeks and 6 days. 365 days = 52 weeks and 1 day. Enter any two dates above and the weeks figure is shown instantly alongside the day count.
How many days are between two dates?
Enter both dates in our calculator for an instant count. To do it manually, convert each date to day-of-year and subtract, accounting for different year lengths. A leap year has 366 days; a standard year has 365. Our calculator handles all edge cases automatically.
How are leap years calculated?
A year is a leap year if: (1) divisible by 4, AND (2) if it is a century year, also divisible by 400. So 2000 was a leap year (divisible by 400), 1900 was not (divisible by 100 but not 400), and 2024 is a leap year. The next century leap year is 2400.
How do I calculate business days between two dates?
Count calendar days, then subtract the number of Saturdays and Sundays in that range, and subtract any public holidays. Approximately: calendar days × 5/7 gives a rough business day count. In the US, there are roughly 261 weekdays per year minus 11 federal holidays = 250 business days.
How many days until a specific date?
Subtract today's date from the target date. Our calculator does this automatically. For example, if today is March 11, 2026, there are 20 days until March 31, 2026 — and 356 days until March 2, 2027.
What is a fortnight?
A fortnight is exactly 14 days (2 weeks). The word comes from Old English 'fēowertyne niht' (fourteen nights). It is commonly used in British English for payroll (paid fortnightly) and some contract terms.
What is the difference between calendar days and business days?
Calendar days count all 7 days of the week. Business days (working days) only count Monday through Friday, excluding weekends and public holidays. A '30-day' deadline usually means 30 calendar days; a '20 business days' deadline means 4 work weeks.
How many weeks are in a year?
A standard year has 52 weeks and 1 day (365 days ÷ 7 = 52.14). A leap year has 52 weeks and 2 days (366 ÷ 7 = 52.28). This is why the same date shifts forward by 1 day of the week each year, and by 2 days after a leap year.
Why does the 90-day period matter for taxes and legal deadlines?
Many legal and financial deadlines are expressed as specific day counts. The IRS has 90-day filing deadlines for certain notices. US capital gains become 'long-term' (lower tax rate) after 365 days of holding. Insurance policies may have 30-day notice requirements. Exact calendar day calculation prevents costly mistakes.