FLXCode Days Between Dates

FLXCode apps

Appearance

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.

Example Total

318 days
  • Days318 days
  • Weeks and days45 weeks, 3 days
  • Months and days10 months, 14 days
  • Years, months, days0 years, 10 months, 14 days
  • Business days (Mon to Fri)227 business days
  • Weekend days (Sat and Sun)91 days
  • 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

  1. From Thursday, January 1, 2026 to Sunday, November 15, 2026
  2. 318 days apart
  3. 318 ÷ 7 = 45 weeks and 3 days
  4. 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

  1. Set the start and end dates. Use Today to fill either with the current date.
  2. Decide on the end date. Off means the start day counts and the end day does not. On counts both.
  3. 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.

SettingDaysBusiness daysMeaning
End date off7 days5 business daysNov 2 to Nov 8 counted, Nov 9 not. One week.
End date on8 days6 business daysBoth Mondays counted. One week and a day.

Worked examples

FromToDaysWith end dateYears, months, daysBusiness days
2026-01-012026-12-25358 days359 days0 years, 11 months, 24 days256 business days
2026-11-152026-12-2540 days41 days0 years, 1 month, 10 days29 business days
2026-03-012026-06-30121 days122 days0 years, 3 months, 29 days86 business days
2000-01-012026-11-159,815 days9,816 days26 years, 10 months, 14 days7,010 business days
2024-02-282024-03-012 days3 days0 years, 0 months, 2 days2 business days
2023-02-282023-03-011 day2 days0 years, 0 months, 1 day1 business day

The last two rows differ by one day because 2024 has a Feb 29.

How the gap is counted

  1. Each date becomes a day number on a continuous count, so the difference of the two numbers is the gap in days.
  2. Weeks are the days divided by 7, with the remainder as days.
  3. Months and days: add whole months to the start while the result is not past the end, then count what is left.
  4. 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

Share Days Between Dates