RunToolRunRunToolRun
Tools/Calculators/Date Difference Calculator

Date Difference Calculator

Calculate the difference between two dates.

100% on device ยท 0 uploads
01 ยท Unlimited
Use it as many times as you want โ€” completely free.
02 ยท Private
Your files never leave your device; everything runs in your browser.
03 ยท Fast
Processing happens locally and finishes in seconds.

How to Calculate Days Between Dates

1

Pick the start date

Choose the first date from the calendar field.

2

Pick the end date

Choose the second date โ€” past or future.

3

Read the difference

See the gap in days, plus weeks and months breakdowns.

Inclusive or exclusive counting

From Monday to Friday: four days or five? Both answers are used in practice. Exclusive counting subtracts one date from the other and gives four โ€” the number of nights, the way hotels count. Inclusive counting includes both endpoints and gives five โ€” the way holiday entitlement and event durations are usually counted.

Neither is more correct; they answer different questions. The mistake is applying one convention while the other was expected, which is how a booking ends up a night short or a project plan a day long. Decide which question you are asking before trusting the number.

Working days are a local question

Counting business days means excluding weekends and public holidays, and both vary. The weekend is Saturday and Sunday in much of the world, Friday and Saturday in several countries, and holidays differ not just by country but by region within a country.

This matters for anything with a deadline expressed in working days โ€” notice periods, payment terms, statutory response times. A calculation that assumes one calendar can be several days wrong, and the direction of the error is never in your favour.

Daylight saving and why days are not always 24 hours

Twice a year in most of Europe and North America, one day is 23 hours and another is 25. If a difference is computed by dividing elapsed seconds by 86,400, any span crossing a clock change comes out fractionally wrong, which rounds into an off-by-one error.

Calendar-based counting avoids this entirely, because it counts dates rather than durations. That is why a date difference should be computed on the calendar and a duration in hours should be computed on the clock โ€” they are genuinely different calculations.

Months and years are ambiguous units

A difference expressed in days is unambiguous. Expressed in months it is not, because months have 28 to 31 days, and 'two months' therefore means between 59 and 62 days depending on which months. The same applies to years and leap days.

For contracts, notice periods and anything else where the exact endpoint matters, days are the safe unit. Months are for describing a span to a human, not for calculating a deadline.

Practical uses and privacy

The common cases are all ones where being wrong has a cost: how long until a deadline, how many days a project actually ran, how much notice a contract requires, how many nights a trip covers, how long between two medical appointments.

The calculation runs in your browser. Contract dates, medical appointments and travel plans are all mildly sensitive, and none of them are transmitted anywhere here.

Counting forwards from a date

The reverse question โ€” what date falls thirty days from now โ€” carries its own trap. A deadline of 'within 30 days' usually starts counting the day after the triggering event rather than the event day itself, so the answer is one day later than naive addition suggests.

Rules also differ on what happens when the final day lands on a weekend or public holiday: some move the deadline forward to the next working day, others backwards, and some leave it where it falls. Where a deadline has consequences, the governing rule is worth reading rather than assuming, because all three conventions are in active use.

Written by Mutaf โ€” Developer of RunToolRun. This section is written from the tool's own implementation.

Why Use This Date Calculator?

โœ“Exact day counts with calendar arithmetic
โœ“Weeks and months breakdown included
โœ“Works for past and future dates
โœ“Free and instant, no sign-up

Frequently Asked Questions

Are both end dates counted?+
The result is the span between the dates โ€” from the 1st to the 3rd counts 2 days. For inclusive counting (deadlines, rentals), add 1 to the result.
Does it handle leap years and month lengths?+
Yes โ€” real calendar arithmetic is used, so February, 30/31-day months and leap years are all correct.
What are typical uses?+
Project deadlines, visa duration limits, rental periods, pregnancy timelines, subscription periods and countdown planning.
Can I calculate into the future?+
Yes โ€” pick any future date to count down the days until an event.

Related Tools