Days Between Dates Calculator

Pick two dates and this calculator tells you how many days lie between them. It also gives the gap in weeks, hours and business days (Monday to Friday), and as years, months and days. Tick the box to include the end date when both the first and last day should count.

Difference—Pick two dates to compare them.

How the days are counted

Each date is turned into a calendar day number, and the answer is the difference between the two. The calculator uses the dates themselves, not clock times, so there is no time zone and no daylight saving involved. Counting works across month ends, years and leap days, and the order of the dates does not matter: if the second date is earlier, the tool swaps them and says so.

  • Days is the number of midnights crossed. From 1 December to 5 December that is 4 days.
  • Include the end date adds one day, so the same range counts as 5 days. Use it when both the first and last day are part of the span, such as a 5-day booking from the 1st to the 5th.
  • Years, months and days counts whole calendar months first and then the leftover days, with the same month-end rule as the date add and subtract calculator.
  • Business days counts Monday to Friday between the dates. It does not know about public holidays.
  • Hours and minutes are the day count multiplied by 24 and 1,440. They are not elapsed clock time, which can be 23 or 25 hours long on a daylight saving change day.

Worked examples

FromToResult
2026-12-052026-12-2520 days. That is 2 weeks and 6 days, and 14 business days (the 5th is a Saturday and the 25th a Friday).
2026-12-012026-12-054 days, or 5 days with the end date included.
2026-01-012026-12-31364 days, or 365 when the end date is included, which is the length of the year.
2026-12-052027-01-0127 days until New Year’s Day.
2026-12-052027-03-0186 days, which is 2 months and 24 days, with 60 business days.
2024-02-282024-03-012 days, because 2024 has a 29 February. The same dates in 2026 give 1 day.

Inclusive or exclusive: which one do you need?

The answer depends on what you are counting. “How many days until my holiday” counts the nights in between, so it is exclusive. “How many days will I be away, counting the day I leave and the day I return” counts both ends, so it is inclusive. Contracts and notice periods often define the rule in their own text, and it is worth checking, because the wrong choice is off by one. The inclusive date ranges guide and the countdown versus date difference guide compare the two with more examples.

Business days and holidays

The business day figure is the number of weekdays, Monday to Friday, in the range. It assumes a five-day week and ignores public holidays, because holidays differ by country and region and sometimes by year. A spreadsheet function such as Excel’s NETWORKDAYS lets you supply a holiday list. If the range ends on a weekend, the end day adds nothing. Read the business days guide for how deadlines, shipping and banking treat working days.

Edge cases and common mistakes

  • Off-by-one errors. The commonest mistake is to count the start day and the end day both when the question only wants the gap. Decide first, then tick the box or not.
  • Leap days. A range that crosses 29 February has one more day in a leap year. The tool handles this automatically.
  • Same date. The difference is 0 days, or 1 day when the end date is included.
  • Daylight saving. Because dates are counted, not hours, a clock change cannot create a fractional day. If you need elapsed hours between two exact times, convert to UTC first or use the Unix timestamp converter and subtract.
  • Month lengths. “One month” is not 30 days. The years, months and days line uses calendar months, so 31 January to 1 March in 2026 is 1 month and 1 day, but also 29 days. Both are correct; they answer different questions, as calendar time versus elapsed time explains.

Related tools and guides

To move a date by a fixed amount, use the date add and subtract calculator. To work out how old someone is, use the age calculator. The guides on calendar dates, leap years and the day of the year cover the ideas behind the numbers.

Common questions

How many days are there between two dates?

Pick both dates and read the large result. It is the number of midnights between them, so 1 December to 5 December is 4 days. Tick Include the end date to count both the first and last day, which gives 5.

Does the calculator include the end date?

Not by default. The count is exclusive, which suits questions such as how many days until an event. Tick the box when both the first and last day count, for example a booking from the 1st to the 5th.

How are business days counted?

The calculator counts Monday to Friday between the two dates. It does not know about public holidays, so subtract any holidays that fall on weekdays yourself, or use a spreadsheet function that accepts a holiday list.

Does the order of the dates matter?

No. If the second date is earlier, the tool swaps them and shows the gap between them, noting that the dates were in reverse order.

Do leap years and month lengths affect the result?

Yes, and the calculator handles them. A range that includes 29 February has one more day in a leap year. 28 February to 1 March is 2 days in 2024 and 1 day in 2026.

Why do the days and the months differ in length?

Calendar months have 28 to 31 days. The years, months and days line counts whole calendar months, while the day total counts every day, so both can be correct for the same range.

Sources and further reading