Tools / Date Difference & Duration Calculator

Date Difference & Duration Calculator.

Count years, months, days and business days between two dates, or add a duration to a date.

Runs in your browser

YYYY-MM-DD, YYYY-MM-DD HH:mm, ISO timestamp, Unix timestamp, today or now. Times without an offset are read as UTC.

Used in difference mode.

Used in add and subtract modes.

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result

About Date Difference & Duration Calculator

Date Difference & Duration Calculator answers two everyday questions: how much time lies between two dates, and which date you get when you add or subtract a period. In difference mode, enter 2024-02-29 and 2026-11-26 and it reports 2 years, 8 months and 28 days, together with the same span as 1,001 total days, 143 weeks, business days from Monday to Friday, hours, minutes, seconds and an ISO 8601 duration such as P2Y8M28D that you can paste into code or an API. Calendar math follows the rules people expect: adding one month to 31 January lands on the last day of February, and a difference is counted in whole months first and then in remaining days. In add and subtract modes you can write the duration as 90d, 1y 6mo, 2w 3d 4h or in ISO 8601 form like P1Y2M10DT2H. A common mistake is counting days inclusively without saying so: from Monday to Friday is four days, or five if you count both ends, which is what the Include end date toggle does for deadlines and leave requests. Another is mixing time zones; this tool reads dates without an offset as UTC so that days are always 24 hours long and daylight saving changes cannot add or remove an hour. Add Z or an offset like +02:00 when you need an exact moment. Business days skip weekends only, because public holidays differ by country. Everything is calculated locally in your browser.

How to Use

  1. Pick difference to compare two dates, or add / subtract to shift a date by a duration.
  2. Enter the dates (and the duration for add or subtract); leave the end empty to compare with now.
  3. Read the breakdown and copy the totals or the ISO 8601 duration you need.

Frequently Asked Questions

How are months counted when they have different lengths?

The calculator moves forward in whole calendar months from the start date, clamping to the end of shorter months, and counts the rest in days. So 31 January to 28 February is 1 month in a non-leap year.

Are public holidays excluded from business days?

No. Business days skip Saturdays and Sundays only, since holidays depend on the country and region.

Why does it ignore daylight saving time?

Dates without an offset are treated as UTC, where every day has 24 hours. Add Z or an offset such as +01:00 to any date to compare exact moments.

Does it send my dates anywhere?

No. All calculations run in your browser and the page makes no network requests while you use it.

Related Tools