Days Between Dates
This free calculator counts the days between dates: enter a start date and an end date and you get the span in days, weeks, calendar months and business days, with weekend days separated out. It runs in your browser, with nothing to install.
What counting the days between two dates actually means
There are two defensible answers to the same question and they differ by one. Counting the nights between the dates gives the difference: 1 March to 5 March is four. Counting the days you are present for, including both ends, gives five. Neither is wrong, and which one you want depends on why you are asking — a hotel bill counts nights, a leave request usually counts both the first day and the last.
That is what the include the end date control is for. It is visible rather than assumed, so the number on screen is one you can defend when somebody checks it. The start date and end date can be entered in either order; if the end is earlier than the start, the calculator swaps them and says so rather than returning a negative number.
Weeks and months, and why months are not a fixed number of days
Weeks are simple: the span in days divided by seven, shown as whole weeks with the leftover days named separately rather than folded into a decimal. Months are not simple, because a month is between 28 and 31 days long and the answer depends on which months your span crosses.
The calculator gives months as calendar months rather than as days divided by thirty. It steps forward from the start date one whole month at a time for as long as the result is still on or before the end date, then reports the remaining days. Stepping from 31 January lands on the last day of February, because there is no 31 February, and the same clamping applies wherever a short month is involved. A figure produced by dividing by thirty will disagree with a calendar for most spans, which is why payroll periods, notice periods and contract terms are all written in calendar months.
Business days, weekend days and what the count does not know
The business days figure counts Monday to Friday within the span and the weekend figure counts the Saturdays and Sundays, so the two add up to the plain day count. That split answers the common working question — how many working days there are before a deadline — without needing a separate tool.
What it does not do is remove public holidays. Holidays differ by country, by region and sometimes by employer, and a number that quietly assumed one calendar would be wrong for most people reading it. This calculator would rather be exact about what it counted than approximate about what it guessed, so subtract the holidays that apply to you from the business day figure. It also does not know about a working week that is not Monday to Friday, which is normal in several countries. Everything is computed in your browser from plain calendar dates, with no time zone involved and nothing sent anywhere. To land on a date rather than measure the gap to one, the date calculator adds or subtracts a span from a date you give it.
Questions and answers
How many days are there between two dates?
Enter both dates and the calculator gives the count immediately, along with the same span in weeks, months, business days and weekend days.
Should the end date be included in the count?
It depends on what you are counting. Nights between two dates exclude the end date; days you are present for include it. The control on the page lets you choose, and the number changes by one.
How are business days counted?
Every Monday to Friday inside the span is counted and Saturdays and Sundays are reported separately. Public holidays are not removed, because they differ by country and employer.
Why is the number of months not just the days divided by 30?
Because months run from 28 to 31 days, so a division by thirty disagrees with a calendar for most spans. The calculator counts whole calendar months and reports the leftover days.
Does the calculator count leap days?
Yes. Every 29 February inside the span is counted as a real day, using the full leap year rule rather than an average year length.
Can the end date be earlier than the start date?
Yes. The calculator swaps them and tells you it has, so you get the size of the gap rather than a negative number.