Page last updated
How to use the days between two dates
- Enter the start date and the end date. They show in your browser’s own date order.
- Choose whether to count the end date as well. Leave it off for “how many days until”, turn it on for a stay or a leave request.
- Read the answer in total days, weeks and days, months and days, and weekdays.
- Open Show the working to see each step and the spreadsheet formulas for your two dates, then copy the result.
How many days are between two dates?
Dates are plain calendar dates with no time zone, counted on the Gregorian calendar. Every date becomes a day number, and the days between two dates is the later day number minus the earlier one, so month lengths and leap years are handled exactly. By default the end date is left out; tick the box to count it too. Weeks are the days divided by seven, with the remainder shown as days. Whole months are added to the earlier date, with a month end moved back to the last day of a shorter month, and the days left over are counted from there. Weekdays are the Monday to Friday dates from the first date to the last, both included, with no holidays taken out.
For example, from Tuesday, October 20, 2026 to Friday, December 25, 2026 is 66 days with the end date left out, or 67 if both dates count. That is 9 weeks and 3 days, or 2 months, 5 days. The dates are made up; yours come from what you enter.
Who should use the days between two dates
- Anyone counting the days between two dates for a deadline, a notice period, a trip or a project
- Students and teachers checking date arithmetic by hand
- Spreadsheet and database users who want to check a date formula
Who should not use this
- Anyone who needs a legally binding count; how days are counted depends on the contract, court or authority, so confirm with it
- Anyone who needs public holidays taken out; use the working days calculator
- Anyone who needs time zones or daylight saving; this counts calendar dates only
Limitations
- Dates run from year 1 to year 9999 on the Gregorian calendar, which is applied to the past as well.
- There are no time zones. Times of day are taken as written, so a period that crosses a daylight saving change is counted as if every day had 24 hours.
- Weekdays means Monday to Friday. Holidays are not taken out.
- Different tools count months and days differently when a month end is involved. Total days is the figure that is the same everywhere.
- Nothing is uploaded or stored on a server. Clearing your browser data also removes the saved profile.
How do you calculate days between dates by hand?
Give every date a day number and subtract the earlier from the later. That one subtraction already handles the different month lengths and leap years. From October 20, 2026 to December 25, 2026 the answer is 66 days: 11 days to finish October, 30 for November and 25 for December.
The order does not matter. If you enter the later date first, the calculator still gives the positive number of days and tells you the dates were swapped.
Number of days between two dates: common gaps worked out
These gaps are counted the default way, with the end date left out. Weekdays are the Monday to Friday dates from the first date to the last, both included. Public holidays are not taken out.
| Between | Days | In weeks | In months and days | Weekdays |
|---|---|---|---|---|
| Start to end of 2026 | 364 | 52 weeks | 11 months, 30 days | 261 |
| One full year, 2026 to 2027 | 365 | 52 weeks 1 day | 1 year | 262 |
| One full leap year, 2028 to 2029 | 366 | 52 weeks 2 days | 1 year | 261 |
| January 1 to March 1, 2026 | 59 | 8 weeks 3 days | 2 months | 42 |
| January 1 to March 1, 2028 (leap year) | 60 | 8 weeks 4 days | 2 months | 43 |
| November 17 to Christmas Day 2026 | 38 | 5 weeks 3 days | 1 month, 8 days | 29 |
| November 17, 2026 to New Year’s Day 2027 | 45 | 6 weeks 3 days | 1 month, 15 days | 34 |
| Memorial Day to Labor Day 2026 | 105 | 15 weeks | 3 months, 13 days | 76 |
Should the end date be counted?
The usual answer to “how many days between” leaves the end date out, so October 20, 2026 to October 21, 2026 is 1 day. A hotel stay, a leave request or a course that runs on both the first and last date counts both, which adds one: October 20, 2026 to December 25, 2026 becomes 67 days. Tick “Count the end date as well” in the calculator for that version.
End date left out
66 days for October 20, 2026 to December 25, 2026.
- Use it for “how long until” and “how long since”
- This is what a spreadsheet subtraction gives
End date included
67 days for the same two dates.
- Use it for stays, leave, and day-by-day schedules
- Check how a form or contract counts before you rely on it
How are the months and days in the gap worked out?
Whole months are added to the earlier date for as long as they do not pass the later one, and the days left over are counted from there. From October 20, 2026 to December 25, 2026 that is 2 months, 5 days. Months are not all the same length, so the answer depends on where the gap sits: January 31 to March 1, 2026 is 29 days, while February 1 to March 1 is 28 days in 2026 and 29 in the leap year 2028.
To compare gaps fairly, use total days. Months-and-days is the form people say aloud, but it is not a fixed length.
How do leap years change the number of days?
A year has 366 days when it divides by 4, except century years that do not divide by 400. So 2024 is a leap year, 2028 is a leap year, 2100 is not a leap year, 2000 is a leap year. Any gap that crosses February 29 is one day longer than the same gap in an ordinary year, which is why a full year can be 365 or 366 days and a calculator that ignores leap years drifts by a day every four years.
How do you find the number of days between two dates in Excel, Google Sheets, SQL and Python?
Put the dates in two cells, here A1 for October 20, 2026 and B1 for December 25, 2026, and every tool below returns 66.
| Tool | Formula | What it counts |
|---|---|---|
| Excel and Google Sheets | =B1-A1 | Elapsed days, end date left out |
| Excel and Google Sheets | =DATEDIF(A1,B1,"d") | The same count, written as a function |
| Excel and Google Sheets | =NETWORKDAYS(A1,B1) | Weekdays, both ends included |
| SQL (PostgreSQL) | DATE '2026-12-25' - DATE '2026-10-20' | Elapsed days |
| Python | (date(2026, 12, 25) - date(2026, 10, 20)).days | Elapsed days |
Sources and review
Reviewed on 17 Nov 2026 against the published sources below. Rules and prices change, so check the current position before you rely on a figure.
- Wikipedia: ISO 8601 week date (weeks start on Monday and week 1 holds the first Thursday)
- Gregorian calendar leap-year rule: every 4th year, except centuries not divisible by 400 (as used in ISO 8601 and the proleptic Gregorian calendar)
Common questions
How many days are there between two dates?
How do I calculate the number of days between two dates?
What is a day counter between dates?
Does the count include the start and end dates?
How many weekdays are between two dates?
How do I find the days between two dates in Excel or Google Sheets?
Does it handle leap years?
Why is the answer in months and days not the same in every tool?
Guides that explain the rules
Related tools
Results are estimates, not legal, tax, payroll or financial advice. They follow the rules and rates named under Sources, leave out anything the page does not mention (such as other income, credits, local rules or your employer’s own policy), and can differ from a payroll run, a tax return or an agency’s decision. See the disclaimer. Found a mistake? Report an error in a calculation.