PublicSoftTools

Days Between Dates Calculator

Select a start date and an end date to instantly calculate the total days between them — plus weeks, business days, weekend days, hours, and minutes. No signup, runs entirely in your browser.

⏱ 7 min read · Complete guide below

Select both dates above to see results.

How to Use the Days Between Dates Calculator

  1. 1Set your Start date using the date picker — it defaults to 30 days before today.
  2. 2Set your End date — it defaults to today. You can type dates directly or use the calendar popup.
  3. 3The total days between the dates appears instantly in the result card, alongside weeks, business days, weekend days, hours, and minutes.
  4. 4Use the ⇄ swap button to reverse the dates, or Reset to today to return to the default range.

When You Need to Count Days Between Dates

Date difference calculations arise in almost every area of life and business. Project managers calculate the number of working days between a kick-off and a deadline. HR teams work out notice periods and probation lengths. Landlords and tenants calculate rental periods. Finance teams count days between invoice date and payment due date. Travellers count days until a trip or verify how long a visa allows them to stay.

The business days breakdown is particularly useful in professional contexts. A deadline that is "15 days away" feels different when you know only 10 of those are working days — and the days available for actual work may be fewer still if you account for meetings, reviews, and dependencies.

Common Uses for Days Between Dates

Project Deadlines

Calculate working days between today and a deadline to know how much real production time you have. A 20-day window contains only 14–16 working days once weekends are removed.

Contract and Notice Periods

Employment contracts, lease agreements, and service contracts often specify notice periods in calendar days. Count exactly to ensure you comply with the required notice window.

Invoice Payment Terms

Net 30, Net 60, and Net 90 payment terms are in calendar days from the invoice date. Calculate the exact payment due date and the days remaining before it falls overdue.

Visa and Travel Duration

Many visa categories limit stays by calendar days. Count your intended stay precisely to stay within the allowance — overstaying even by one day can affect future visa applications.

Pregnancy and Medical Timelines

Count days between medical appointments, calculate gestational age in days from a reference date, or track the duration of a treatment or recovery period precisely.

Event Planning

Count down days to a wedding, conference, product launch, or important date. Knowing exactly how many days — and how many working days — remain changes how you plan your preparation.

Inclusive vs Exclusive: The Off-by-One Trap

The most common source of confusion in counting days between two dates is deceptively simple: do you count both endpoints, or the gap between them? These two interpretations differ by one, and that single day causes an enormous number of real-world errors. The difference between 1 May and 3 May is two days (the number of nights, or the gap you cross). But if you are counting how many days a rental, event, or stay spans — where both the first day and the last day are full days — the answer is three.

This distinction is not academic; it has legal and financial consequences. A hotel charges by nights (the exclusive count), but an event that runs “from Monday to Friday” lasts five days (inclusive). Contract notice periods, rental agreements, and interest calculations can each use a different convention, and getting it wrong by a day can breach a deadline or miscalculate a payment. This calculator reports the difference between the two dates (the exclusive count); when you need to include both endpoints — counting the span rather than the gap — simply add one to the result. Being conscious of which you need is the single best defence against date-counting errors.

Business Days and Why They Matter

For most professional purposes, the raw calendar-day count is less useful than the number of business days — the working weekdays, Monday through Friday, with weekends removed. The difference is larger than people expect: a deadline “three weeks away” is 21 calendar days but only about 15 working days, and the practical time you have to get something done is smaller still once meetings and dependencies are accounted for. Whenever a timeline drives real work, the business-day figure is the honest one.

One important caveat: a simple business-day count removes weekends but not public holidays, which vary enormously by country and even by region. A two-week window over a period containing several national holidays can lose several more working days than a plain Monday-to-Friday count suggests, and “business days” in a contract often means bank working days that exclude those holidays. Different industries and jurisdictions also define the working week differently — some regions treat different days as the weekend entirely. So use the business-day figure as a strong practical estimate, and when a deadline is legally binding, check whether specific holidays should be subtracted too.

Date-Math Pitfalls: Time Zones and Daylight Saving

Counting days sounds like it should be perfectly clean arithmetic, but a couple of real-world wrinkles trip up naive calculations. The first is time zones. If a calculation treats dates as precise moments in time rather than calendar days, the same two dates can yield a different day count depending on the zone, because “midnight” happens at different absolute instants around the world. The fix, which this tool uses, is to compare calendar dates in your local time rather than raw timestamps, so the result matches the days on your own wall calendar.

The second is daylight saving time. On the days that clocks spring forward or fall back, a “day” is actually 23 or 25 hours long, so a calculation done in raw hours and divided by 24 can be off by an hour across a DST boundary — occasionally enough to miscount a day. Again, counting whole calendar days rather than elapsed hours sidesteps the problem. These are exactly the kinds of subtle bugs that make hand calculations and quick spreadsheet formulas unreliable for anything important, and why a purpose-built calculator that handles calendar days, leap years, and local time correctly gives an answer you can depend on for contracts, deadlines, travel, and planning alike.

Frequently Asked Questions

How does the days between dates calculator work?

Enter a start date and an end date. The calculator finds the absolute difference in calendar days between the two dates — it does not matter which date is earlier. The result is shown in total days, complete weeks (plus remaining days), approximate months, business days (Monday to Friday), weekend days, total hours, and total minutes.

How are business days counted?

Business days are counted by iterating through every day between the start and end dates (inclusive of both) and counting only days that fall on Monday, Tuesday, Wednesday, Thursday, or Friday. Public holidays are not excluded — the calculator counts working weekdays only, not market or regional holidays, which vary by country.

Does the calculator include both the start and end date?

Yes. Both the start date and end date are included in the count. If you select 1 May and 3 May, the result is 2 days (the difference between the dates), not 3. If you want to include both endpoints (e.g. for a rental period where day one and day last are both full days), add 1 to the result.

How accurate is the "approximate months" figure?

The months figure uses an average month length of 30.4375 days (365.25 ÷ 12), which accounts for leap years. Because calendar months vary between 28 and 31 days, this is an approximation — "2 months + 3 days" means roughly two average months and three days. For exact calendar month differences, use the age calculator.

What does the swap button do?

The swap button exchanges the start and end dates. This is useful when you want to reverse the direction of the calculation — for example, switching from "days until a deadline" to "days since a start date" without retyping.

Can I calculate days between historical or future dates?

Yes — the date inputs accept any valid calendar date. You can calculate the number of days between events centuries apart or plan timelines far into the future. All calculations run in your browser using JavaScript's Date object.

Is my data stored or sent anywhere?

No. The calculator runs entirely in your browser. No dates, results, or personal information are transmitted to any server or stored anywhere. Refreshing the page resets the inputs.