home / Other / date calculator

Date Calculator

The Date Calculator is a free online tool that finds the time between two dates — in days, weeks, months, years and business days — and adds or subtracts any period from a starting date. It runs instantly in your browser with no sign-up.

Days Between Two Dates

From to

Add or Subtract from a Date

years months weeks days

Related: Age Calculator | Time Calculator

Counting Days Between Dates

The number of days between two dates is a simple subtraction once both are converted to a day count from a fixed origin. What makes it error-prone by hand is that months have different lengths and leap years insert an extra day irregularly.

An important convention: the count is exclusive of the end date. From 1 January to 2 January is one day, not two. If you need both endpoints included — counting nights in a hotel versus days of a conference — add one.

Leap Years

The Earth's orbit takes about 365.2422 days, so a 365-day calendar drifts. The Gregorian rule corrects it:

  • Divisible by 4 → leap year
  • Unless divisible by 100 → not a leap year
  • Unless divisible by 400 → leap year after all

So 1900 was not a leap year but 2000 was. The rule gives 97 leap days per 400 years, an average year of 365.2425 days, and a residual drift of roughly one day every 3,200 years.

Business Days

Business day counts exclude Saturdays and Sundays, giving five per week and roughly 260 per year before public holidays. The calculator counts weekdays from the start date up to but not including the end date. It does not subtract public holidays, since those differ by country, state and industry — the U.S. has 11 federal holidays, the UK 8 bank holidays in England and Wales, and many countries considerably more.

PeriodTotal daysWeekdaysWeekend days
1 week752
1 month (average)30.44~21.7~8.7
1 quarter~91~65~26
1 common year365260 or 261104 or 105
1 leap year366261 or 262104 or 105

Adding Months Is Not Like Adding Days

Adding a month to 31 January cannot give 31 February. Every date library has to choose a rule, and they do not all choose the same one. The convention used here — and by most software — is to clamp to the last valid day of the target month:

StartPlus 1 monthWhy
31 January 202628 February 2026February has 28 days in 2026
31 January 202829 February 20282028 is a leap year
31 March 202630 April 2026April has 30 days
30 April 202630 May 2026No clamping needed

A consequence worth knowing: this operation is not reversible. Adding one month to 31 January gives 28 February, but subtracting one month from 28 February gives 28 January, not 31.

The calculator applies years and months first, then weeks and days, which is the standard order. Applying them in a different order can produce a different result for month-end dates.

Date Formats

FormatExampleUsed in
ISO 8601 (YYYY-MM-DD)2026-08-31International standard, computing — unambiguous and sorts correctly as text
MM/DD/YYYY08/31/2026United States
DD/MM/YYYY31/08/2026Most of Europe, Latin America, Asia
DD.MM.YYYY31.08.2026Germany, Russia, Turkey

The ambiguity between the U.S. and European formats is a genuine source of error: 03/04/2026 is 4 March in London and 3 April in New York. ISO 8601 exists precisely to remove this, and is worth using whenever a date crosses a border.

Calendar History

The Julian calendar, introduced in 45 BC, treated every fourth year as a leap year, giving an average year of 365.25 days — about 11 minutes too long. By the sixteenth century the accumulated error had shifted the equinox by ten days, disrupting the calculation of Easter.

Pope Gregory XIII's 1582 reform removed the drift by deleting ten days and adding the century rules. Catholic countries adopted it immediately: 4 October 1582 was followed directly by 15 October. Britain and its colonies waited until 1752, by which time eleven days had to be dropped, and Russia until 1918. Dates before a country's adoption need care — historical sources may quote either calendar.

Frequently Asked Questions

Does the count include both dates?

No. It counts complete days from the first to the second, so from Monday to Friday is 4 days. Add one if you need both endpoints counted.

How do I count only working days?

The business day figure appears alongside every result. Subtract any public holidays that fall on weekdays in your jurisdiction.

Why does adding a month sometimes change the day of the month?

Because the target month is shorter. The result is clamped to that month's last day, which is the standard convention across software.

Are time zones taken into account?

No. The calculation works on calendar dates only, which is what date arithmetic normally means. Time zones matter for timestamps, not for dates.