DAT

Date Difference Calculator

Pick two dates to see how far apart they are in years, months and days, and as total days, weeks and weekdays.

— Pick two dates.

How it works

The calculator counts the whole calendar days from the start date to the end date, then breaks the gap into years, months and days. Both dates are treated as calendar dates with no time of day, so daylight saving changes cannot add or remove an hour. Nothing is sent anywhere.

  • Years, months and days: whole years first, then whole months, then the days left over. Months are added to the start date one calendar month at a time (landing on the last day of a shorter month when needed) until the next step would pass the end date, and the days left over are counted from there.
  • Total days: the exact number of days between the dates. Leap days are included automatically.
  • Weekdays: Monday to Friday only. Public holidays are not removed.
  • Count the end date too: adds one day, which is how people count a stay or a project that includes both the first and the last day.

Worked example

From 15 January 2024 to 22 October 2026 is 2 years, 9 months and 7 days: 15 Jan 2024 to 15 Oct 2026 is 2 years 9 months, plus 7 days to the 22nd. In total that is 1,011 days, or 144 weeks and 3 days. The count includes 29 February 2024, because 2024 was a leap year.

Good to know

“Months” are not a fixed length, so the same number of days can be a different number of months depending on the dates. For legal or contractual deadlines, check how the document defines a month and whether the first and last day are included.

Frequently asked

Does it include the start and end date?

By default the end date is not counted, so 1 January to 2 January is 1 day. Tick “Count the end date too” to include both days, which makes it 2 days.

Does it handle leap years?

Yes. Leap days are counted in the total, so 28 February to 1 March is 2 days in a leap year and 1 day otherwise.

What if the end date is before the start date?

The tool swaps them and tells you, so you still get the size of the gap.

Last updated: October 2026