Days Between Dates

ToolCalculators · updated 21 September 2026

14 days

2 weeks

From Mar 1, 2026 to Mar 15, 2026, last day not counted

The example above is calculated. Turn on JavaScript to count your own dates.

The calculator subtracts one date from the other and gives the difference in days. March 1 to March 15 is 14 days — the number of times you turn the calendar page to get from the first date to the second. Below the number, the same answer is split into whole weeks and the days left over. Months are left out on purpose: “one month” from January 31 means nothing precise, while a day is always a day.

Counting the last day

The default leaves the end date out, which matches how spreadsheets and most date tools count: 15 minus 1 is 14. When both ends of the range should count — days of an event, days on a prescription, days of leave — switch on “Count the last day” and the answer grows by one. The line under the result always says which of the two you are looking at.

In Excel and Google Sheets

Both store a date as a whole number of days, so the difference is plain subtraction. With the start date in A1 and the end date in B1:

  • =B1-A1 — days between, end date not counted;
  • =DAYS(B1,A1) — the same thing as a function; the end date goes first;
  • =B1-A1+1 — both ends counted.

If the cell shows a date like 01/14/1900 instead of 14, it is formatted as a date; switch it to Number. DAYS works the same way in Google Sheets, and it accounts for leap years on its own.

Questions

Is the end date included?
Not by default. The calculator subtracts one date from the other, the same way Excel's DAYS does, so March 1 to March 15 is 14 days. Turn on "Count the last day" when both ends should count — a hotel stay counted in nights stays at 14, a festival running from the 1st to the 15th is 15.
How do I get the same number in Excel?
Put the start date in A1 and the end date in B1, then use =DAYS(B1,A1) or simply =B1-A1. Note the order in DAYS: the end date comes first. Add 1 if you want the end date included.
What if the second date is earlier than the first?
The calculator swaps them and says so under the answer. Excel does not: DAYS and a plain subtraction both return a negative number in that case.
Can it count business days only?
No, every day here is a calendar day. Spreadsheets have NETWORKDAYS for that; a business-day calculator on this site does not exist yet.

Sources and date checked