MateenLabs No ads · Runs in your browser
Free Calculator

Date Difference Calculator

How many days are there until a deadline, between two invoices or since a project started? Pick two dates to see the gap in years, months and days, the total number of days and weeks, and the number of working days once weekends are taken out.

Switch to the "Add or subtract" mode to move a date forward or back by any number of years, months, weeks and days, for example to find the date 90 days after a contract starts or six months before an exam.

Free Forever No Login No File Uploads Browser Processing

Dates

Mode

Result

Choose two dates to see the difference.

How dates are counted

By default the calculator counts the days from the start date up to the end date, without counting the end date itself, the same way you would count nights in a hotel. From 1 to 31 January is 30 days. Tick Include the end date to count both days, which gives 31. If the start date is after the end date, the two are swapped and a note tells you so.

Years and months are counted as calendar months. When a month is shorter than the day you start from, the last day of that month is used: 31 January plus one month is 28 February, or 29 February in a leap year. Working days are all days except the weekend days you choose, so you can use Saturday and Sunday, Friday and Saturday, Friday only or Sunday only. Public holidays differ by country and are not removed.

All arithmetic is done in UTC on whole days, so daylight saving changes never add or remove a day, and any range from the year 1 to 9999 can be counted instantly.

  • Difference in years, months and days, plus total days, weeks and months.
  • Working days with the weekend of your choice.
  • Option to include the end date in the count.
  • Add or subtract years, months, weeks and days from any date.
  • Month-end dates are handled clearly, with a note when a date is moved to the end of a shorter month.
  • Copy the result with one button.

How to use the Date Difference Calculator

  1. Choose Difference between dates or Add or subtract.
  2. Pick the dates, or the start date and the amounts to add or subtract.
  3. Choose whether to include the end date and which days are the weekend.
  4. Press Calculate or Enter. The result also updates as you change the inputs.

Is it private?

Yes. The dates you enter are only used inside this browser tab. Nothing is uploaded or saved, and reloading the page clears them.

Read our tools privacy policy →

Frequently asked questions

Does the result include the end date?

Not by default. The count runs from the start date up to the end date, so 1 to 2 January is 1 day. Tick "Include the end date" to count both dates, which adds one day.

How are working days counted?

Every day in the range is counted except the weekend days you choose. Public holidays are not removed because they differ between countries and regions, so subtract them yourself if needed.

What is 31 January plus one month?

There is no 31 February, so the calculator uses the last day of February: 28 February, or 29 February in a leap year. A note appears whenever this happens.

What happens if the start date is after the end date?

The calculator swaps them and tells you, so the difference is always shown as a positive number of days.

Can I count days across many centuries?

Yes. Any dates from the year 1 to 9999 work. Old dates use today's Gregorian calendar rules, which may not match historical records kept in the Julian calendar.

Related tools