Date Difference Calculator — Days Between Dates

Work out how far apart two dates are, or move a date forwards and backwards by a set period. The first tab reports the gap in days, weeks, months and years, and lets you exclude weekends and your own list of holidays — which is how you turn a calendar gap into real working days for a project plan, a notice period or a leave calculation. The second tab does date arithmetic: add ninety days to a contract date, subtract six weeks from a deadline, or find the date forty-five working days from today. Leap years are handled correctly and nothing you enter is sent anywhere.

Date Difference Calculator

Two modes: count between dates, or add and subtract.

Options

Runs fully in your browser. Nothing is uploaded.

How to Use the Date Difference Calculator

  1. On the first tab, pick a start and an end date. The gap appears in days, weeks and whole months at once.
  2. Tick inclusive when the brief counts both the first and last day — notice periods and event bookings usually do, project plans usually do not.
  3. Tick Exclude Saturdays and Sundays to turn the calendar gap into working days.
  4. Add your own holiday dates, one per line in YYYY-MM-DD form, to subtract public holidays and company closures as well.
  5. Switch to Add or subtract to move a date. Choose Add or Subtract, enter years, months or days, and read the resulting date.
  6. Tick the working-days box on that tab to count only weekdays — useful for payment terms and statutory deadlines.

Features

  • Difference in days, weeks, whole months and years from a single calculation.
  • Inclusive counting as an explicit option, since different forms mean different things by “days between”.
  • Weekend exclusion for working-day counts, with a separate total shown alongside the calendar total.
  • Your own holiday list, with dates that already fall on an excluded weekend not double counted.
  • Date arithmetic in years, months and days, forwards or backwards, with month-end handled sensibly.
  • Working-day arithmetic, which steps over weekends rather than subtracting an estimate.

About This Tool

“How many days between” is ambiguous, and that ambiguity causes real errors. From 1 March to 5 March is four days if you are counting nights in a hotel, and five days if you are counting days of attendance. Legal notice periods, visa validity and leave policies differ on which they mean. This tool shows the plain difference by default and gives you an explicit inclusive option, so you can produce whichever number the document asks for rather than guessing.

Working days are the other common requirement. Payment terms, statutory response windows and project estimates are usually quoted in working days, and converting by multiplying by five sevenths is wrong whenever the period does not start on a Monday. The weekend exclusion here walks the calendar day by day and counts only the weekdays, then subtracts any holiday you list that is not already a weekend.

Month arithmetic has its own trap. Adding one month to 31 January has no obvious answer, because 31 February does not exist. This tool clamps to the last valid day of the target month, giving 28 or 29 February, which is the behaviour used by spreadsheet software and most accounting systems. Subtracting then adding the same number of months will therefore not always return you to the original date — that is a property of calendars, not a bug.

All arithmetic uses UTC internally, so a daylight-saving change in the middle of your range cannot shift a result by a day, which is a surprisingly common failure in date tools built on local time.

Frequently Asked Questions

Does the result include the start and end day?

By default no: the result is the plain difference, so 1 March to 5 March is four days. Tick the inclusive option to count both ends, which gives five. Check which one the document you are filling in means, because notice periods and bookings usually want the inclusive figure.

How do I count working days between two dates?

Tick the weekend exclusion box, then add any public holidays to the holiday list, one per line. The counted-days figure is your working-day total. Dates that are already weekends are not subtracted twice.

What happens when I add a month to 31 January?

You get 28 February, or 29 in a leap year. There is no 31 February, so the result is clamped to the last valid day of the target month. Spreadsheets and accounting systems behave the same way.

Are leap years handled?

Yes. The calculation uses real calendar arithmetic rather than a fixed 365-day year, so a range spanning 29 February counts that day. Everything is computed in UTC so daylight-saving changes cannot shift a result.

Can I calculate a date a number of working days from today?

Yes. Use the Add or subtract tab, enter the number in the days field, and tick the working-days box. The tool steps forward one weekday at a time instead of adding calendar days.

Related Tools

Age Calculator

Find exact age in years, months, days plus a next birthday countdown.

Open Age Calculator

Percentage Calculator

Work out percentages five ways with the formula shown under each answer.

Open Percentage Calculator

Salary Calculator

Estimate monthly in-hand salary from CTC with a full deduction table.

Open Salary Calculator

Rent Receipt Generator

Generate monthly rent receipts for HRA and download one combined PDF.

Open Rent Receipt Generator

Browse all 20 tools →