Skip to content
hateitall

Date Difference Calculator

Find exactly how long it is between two dates, in years, months and days or in total days.

Processed locallyIn: DateOut: Duration

Loading tool…

How to use date difference calculator

  1. Pick the start date and the end date.

  2. Tick Count the end date too if both days should be included, as for a hotel stay counted in days.

  3. Read the difference in years, months and days, and the totals below it.

What this tool does

  • Years, months and days the way people count them, with month ends handled (31 January to 1 March is 1 month 1 day).
  • Total days, weeks, whole months, hours and minutes.
  • Weekdays (Monday to Friday) in the range.
  • Works backwards too, when the end is before the start.

How the result is verified

The months count is the most whole months that fit, which matches Python's dateutil relativedelta; it was checked against it on 3000 random date pairs. Check by adding the months and days back with the add days tool.

Frequently asked questions

How do you count months between dates that end on the 31st?

A month after 31 January is the last day of February, since February has no 31st. So 31 January to 28 February 2023 is 1 month, and to 1 March is 1 month and 1 day.

Should I count the start and end dates?

By default the start date is not counted, which is how 'days until' works: Monday to Tuesday is 1 day. If both days count, as for an event running Monday to Tuesday, tick Count the end date too.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Business days between dates or after a date, minus weekends and holidays

Date · Holiday list→ NumberLight on device

Exact age in years, months and days, and the next birthday

Date→ DurationLight on device

ISO week of a date, or the dates of a week number

Date · Number→ Week numberLight on device

Hours and minutes between two times, overnight or across dates

Time · Date→ DurationLight on device