Days Between Dates
Pick a start and an end date and see the gap in days, weeks, months, years and business days. One switch decides whether the end date counts.
https://flxcode.com/days-between-dates/
Example Total
- Days
- Weeks and days
- Months and days
- Years, months, days
- Business days (Mon to Fri)
- Weekend days (Sat and Sun)
- The start day is counted and the end day is not, so Monday to Tuesday is 1 day.
- Business days are Monday to Friday. Holidays are not removed.
How it was worked out
- From Thursday, January 1, 2026 to Sunday, November 15, 2026
- 318 days apart
- 318 ÷ 7 = 45 weeks and 3 days
- Jan 1, 2026 plus 10 months is Nov 1, 2026, and 14 days remain until Nov 15, 2026
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.
Problem or idea? Email us
Quick start
- Set the start and end dates. Use Today to fill either with the current date.
- Decide on the end date. Off means the start day counts and the end day does not. On counts both.
- Read the total in days. The other rows show the same gap in other units.
Counting the end date or not
The same two dates give two correct answers, and people argue about which. Take Monday Nov 2 to Monday Nov 9, 2026.
| Setting | Days | Business days | Meaning |
|---|---|---|---|
| End date off | 7 days | 5 business days | Nov 2 to Nov 8 counted, Nov 9 not. One week. |
| End date on | 8 days | 6 business days | Both Mondays counted. One week and a day. |
Worked examples
| From | To | Days | With end date | Years, months, days | Business days |
|---|---|---|---|---|---|
| 2026-01-01 | 2026-12-25 | 358 days | 359 days | 0 years, 11 months, 24 days | 256 business days |
| 2026-11-15 | 2026-12-25 | 40 days | 41 days | 0 years, 1 month, 10 days | 29 business days |
| 2026-03-01 | 2026-06-30 | 121 days | 122 days | 0 years, 3 months, 29 days | 86 business days |
| 2000-01-01 | 2026-11-15 | 9,815 days | 9,816 days | 26 years, 10 months, 14 days | 7,010 business days |
| 2024-02-28 | 2024-03-01 | 2 days | 3 days | 0 years, 0 months, 2 days | 2 business days |
| 2023-02-28 | 2023-03-01 | 1 day | 2 days | 0 years, 0 months, 1 day | 1 business day |
The last two rows differ by one day because 2024 has a Feb 29.
How the gap is counted
- Each date becomes a day number on a continuous count, so the difference of the two numbers is the gap in days.
- Weeks are the days divided by 7, with the remainder as days.
- Months and days: add whole months to the start while the result is not past the end, then count what is left.
- Business days: whole weeks give 5 each, and the leftover days are checked one by one against Saturday and Sunday.
Numbers this uses
- A common year is 365 days and a leap year 366. A year is 52 weeks and 1 day, or 2 days in a leap year.
- Average month in a long run of the Gregorian calendar: 30.44 days (365.2425 divided by 12).
- Weekend days: Saturday and Sunday. No holidays are removed.
- Dates from year 1 to 9999, on the Gregorian calendar extended backwards.
Limits
- Calendar dates only, with no hours. A flight that lands the next morning still crosses one date change.
- For a number of weeks as the main answer, there is a page for weeks between dates. To move a date forward by an amount, use the Date Calculator.
Nothing you type is uploaded. We count events without cookies (details).
FAQ
How many days are there between two dates?
Pick both dates. The tool gives the number of days from the start to the end, so Monday to Tuesday is 1. It also splits the same span into weeks, months and years, and shows the business days.
Should I include the end date?
It depends on what you are counting. For "how long until", leave the box off. For a stay or a booking where both the first and last day count, such as a conference from the 1st to the 3rd being 3 days, turn it on. The result changes by exactly one day.
How many days until Christmas, or any date?
Press Today under the start date, then set the end date to Dec 25. The tool shows the days left and the weeks and days.
Why is the answer in months and days sometimes odd?
Months are not equal. The tool adds whole months to the start date until the next month would pass the end date, then counts the leftover days. If the start day is the 31st, a short month gives the last day of that month. Jan 31 to Mar 1 is 1 month and 1 day.
Does it handle leap years?
Yes. Feb 28 to Mar 1 is 2 days in 2024 and 1 day in 2023, and a span of one full year is 365 or 366 days depending on the dates. 1900 was not a leap year and 2000 was.
What if the end date is before the start date?
The tool swaps them for the count and tells you it did. You get the same size of gap, so there is nothing to fix by hand.
How do I count days between dates in Excel or Google Sheets?
Subtract: =B1-A1 gives the days with the start counted and the end not. Add 1 to include the end. DATEDIF(A1, B1, "m") gives whole months, and NETWORKDAYS(A1, B1) counts business days with both ends included.
Are my dates saved or uploaded?
No. The count runs in your browser and nothing you type is stored, sent or put in the address bar.
More from FLXCode
Date CalculatorNew
Add or subtract days, weeks, months and years from a date, or only business days. Shows the weekday and the steps.
Weeks Between DatesNew
Count the weeks and days between two dates, with the total days and business days next to it.
Age CalculatorNew
Work out an age in years, months and days from a birth date, on today or any date. Shows the next birthday.
Pomodoro TimerNew
A Pomodoro timer: 25 minute focus blocks, short and long breaks, custom lengths and a chime. Right in background tabs.