Home / All calculators / Date Difference Calculator

Free online date calculator

Date Difference Calculator

Calculate how many calendar days and complete weeks fall between two dates. Also see the calendar-style difference in years, months and days.

Calculate the difference between dates

Calendar days between dates—
Complete weeks + remaining days—
Calendar difference—

The start date is counted as day zero. The end date is not counted as an additional day.

How the date difference is calculated

The total day difference is the number of midnight-to-midnight calendar boundaries between the selected dates. The calculator uses UTC date arithmetic to avoid daylight-saving clock changes affecting the day count.

Complete weeks are calculated by dividing the absolute day difference by seven. The remainder is the number of days after those complete weeks. The calendar difference is calculated by stepping from the earlier date to the later date in whole calendar years, then months, then days.

For example, the number of days from 1 January to 11 January is 10 days when the start date is day zero. If an inclusive count is needed for a form or event, add one day to the displayed difference.

Common uses

For age in years, months and days from a date of birth, use the Age Calculator.

Frequently asked questions

Is the start date included?

No. The start date is day zero and the result counts the date boundaries up to the end date. For inclusive counting, add one to the total.

Does the calculator handle leap years?

Yes. UTC calendar date arithmetic naturally accounts for leap days in the selected range.

Can I enter the dates in reverse order?

Yes. The calculator uses the earlier and later date to report a positive elapsed duration.

Is this the same as an age calculator?

Not exactly. This tool focuses on elapsed days, weeks and calendar duration between any two dates. The Age Calculator is designed for date-of-birth calculations.

More everyday calculators

Age Calculator · Basic Calculator · Browse all calculators

This tool counts calendar dates, not working days. Public holidays and business-specific working schedules are not included.

How the date difference is worked out

The calculator treats the two inputs as calendar dates, not times of day. It places the earlier date first and reports the elapsed number of days, complete weeks plus remaining days, and a calendar breakdown in years, months and days. The start date is day zero: the result is the elapsed interval between dates, not an inclusive count of every date printed on a calendar.

Days and weeks

Elapsed days are calculated from the difference between the two calendar dates. Weeks are complete groups of seven days, with any remaining days shown separately. For example, a 31-day interval is four complete weeks and three additional days.

Calendar years and months

Calendar units are not converted using fixed assumptions such as 365 days per year or 30 days per month. The calculator first counts complete calendar years, then complete calendar months, and finally the remaining days. When the original date falls on the last day of a longer month, a target month with fewer days is handled by using that month's final valid date. This matters for dates around the end of February and leap years.

Examples and inclusive counting

From 1 January to 1 February is 31 elapsed days. From 29 February 2024 to 28 February 2025 is one calendar year under the end-of-month convention used here. If a task requires counting both the first and last dates as included days, add one to the elapsed-day result; do not change the calendar breakdown.

Limitations

This tool does not calculate business days, working shifts, public holidays, time-zone changes or hours between timestamps. It uses the dates entered and reports their absolute difference, so reversing the two dates does not create a negative interval. For legal deadlines, travel, payroll or contract periods, confirm the applicable counting rule with the relevant authority or professional.