Date Difference Calculator
Calculate the exact difference between two dates in years, months, weeks, days, hours and minutes. Choose whether to include the end date.
Last reviewed: 30 July 2026
Related calculators
-
Days Between Dates Calculator
Count the days between two dates, with a full weekday breakdown.
-
Working Days Between Dates
Count business days between dates, excluding holidays.
-
Add or Subtract Days from a Date
Add or subtract days, weeks, months or years from any date.
-
Exact Age Calculator
Calculate an exact age in years, months and days.
-
Week Number Calculator
Find the ISO week number for a date, or the dates in a week.
How this calculation works
The difference between two dates is measured in whole calendar days. Each date is treated as midnight at the start of that day, so the gap from 1 January to 2 January is exactly one day regardless of where in the world you are or whether the clocks changed in between.
The years, months and days breakdown
The headline figure counts whole months forward from the start date and then adds the leftover days. This matters at the end of a month: one month after 31 January is 28 February, because there is no 31 February, so 31 January to 1 March comes out as one month and one day. Dividing a day count by an average month length would give a different and less useful answer.
Whether the end date counts
By default the end date marks the end of the period rather than being counted as a day of its own. This is the right reading for questions like “how long until the deadline?”. Ticking Include the end date adds one day to every total, which is the right reading for questions like “how many days am I booked off?”.
Hours, minutes and seconds
These totals are the whole-day count multiplied out at 24 hours per day. Two days a year are not actually 24 hours long in places that observe daylight saving, so treat these figures as a conversion of calendar days rather than a stopwatch reading. If you need real elapsed clock time across a daylight-saving change, use the time zone converter instead.
Worked example
From 1 January 2026 to 15 February 2026
- 1 month and 14 days
- 45 days, not counting the end date
- 46 days, counting both the first and last day
- 6 weeks and 3 days
January contributes its full 31 days, then 14 more days reach 15 February. Counting both endpoints adds the extra day that gives 46.
Limitations
- Dates are treated as calendar dates with no time of day.
- The Gregorian calendar is used throughout, including for dates before its adoption in a given country. Historical dates before the 18th century may not match contemporary records.
- Weekends and public holidays are not excluded — use the working days calculator for that.
Frequently asked questions
Does the calculator include the first day?
The start date is always the point the count begins from, so it is not counted as an elapsed day. From 1 January to 2 January is one day. If you want both endpoints counted — which is what people usually mean by "how many days am I away for" — tick "Include the end date".
Are leap years included?
Yes. Every 29 February in the range is counted as a real day, and the year-and-month breakdown uses the actual length of each month. A range covering 29 February 2028 will be one day longer than the same range a year earlier.
Why does the year, month and day breakdown not match the total days divided by 365?
Months have different lengths, so a calendar breakdown cannot be derived by dividing. The breakdown counts whole months forward from the start date and then the leftover days, which is why 31 January to 1 March is one month and one day rather than 29 days.
Does the calculator account for time zones or daylight saving?
No, and deliberately so. This calculator works on calendar dates, which are the same everywhere. Daylight saving changes the length of two days each year in clock hours, so the "total hours" figure is a straight multiplication of whole days by 24 rather than a wall-clock measurement.
Can I share a result?
Yes. The dates you enter are added to the address bar, so copying the link reproduces exactly the same calculation for whoever you send it to.