Skip to content
Convertitive

Date Difference Calculator

Two dates in — days, weeks, hours, and a calendar breakdown out.

The calculator below returns the precise distance between two dates in five formats: total days, total weeks, total hours, and a calendar-aware years/months/days breakdown. The breakdown is the version most contracts and legal documents use — ‘1 year, 6 months, and 12 days’ rather than ‘561 days’.

Difference
863 days

That’s 2 years, 4 months, 12 days — a calendar-aware breakdown that respects month lengths and leap years.

Total weeks
123
Total days
863
Total hours
20,712

How to use

  1. Pick the start date

    Use the date picker. Time of day is fixed at midnight local time for predictable results.

  2. Pick the end date

    Default is today. The order doesn't matter — if you swap them, the result simply changes sign.

  3. Read both views

    The big number is total days (with weeks and hours as alternates). The sentence below it is the calendar-aware breakdown that respects month lengths and leap years.

Frequently asked questions

Why are there two different views of the same interval?
Total days is exact and unambiguous (every day is 24 hours). The calendar breakdown is contextual — "1 year" can be 365 or 366 days depending on whether a leap year is included, but it's what people mean in everyday speech.
Does the result include both endpoints?
It counts the distance between the two dates. From Jan 1 to Jan 2 is 1 day. Some workplace and legal contexts count inclusive intervals (4 days from Mon–Thu); add 1 if that's the convention you need.
Are leap years handled?
Yes. From Feb 28, 2020 to Mar 1, 2020 is 2 days (because 2020 is a leap year and Feb 29 exists). From Feb 28, 2021 to Mar 1, 2021 is 1 day.
What about time zones?
The calculator works in your local time zone for both endpoints. For interval calculations this doesn't matter — DST transitions add or subtract one hour total, well below the day-level resolution shown here.
Can I compute backward differences?
Yes — pick an earlier 'to' than 'from' and the result becomes negative. The breakdown's sign matches the day count.
How is 'total months' counted?
It's the integer number of calendar months between the dates. Two dates within the same month return 0 months; from Jan 31 to Feb 28 is 0 months (the day didn't reach 31 again); from Jan 31 to Mar 1 is 1 month.

About

When the two views disagree

1,000 days isn't quite 2 years and 9 months in every direction. A 2 years 9 months 0 days interval that includes a leap day is 1,005 days; without, it's 1,004 days. The calendar breakdown is right for legal and conversational use; the day count is right for billing, accruals, and machine arithmetic.

Practical use cases

Tenure on the job, time since a milestone, days until a deadline, vacation accruals, age of a project, distance from a memorable date. The widget is symmetric — past or future works identically.