How to use it
How to use date difference
Measure both the total number of days and the calendar years, months, and days between two dates.
Measure the days remaining between a contract date and a delivery deadline.
- Enter the First date and Second date.
- Read the total days and the calendar years, months, and days.
- Check whether the second date is before, after, or the same as the first.
How it works
Date-only values are compared in UTC for a stable total-day result, while calendar arithmetic produces the human-readable interval.
Common uses
- Count days until a renewal or delivery
- Measure an employment or project interval
- Compare two milestone dates across a leap year
What the free tool includes
- Total days
- Calendar years, months, and days
Common questions
Is the difference between two dates inclusive?
It measures elapsed calendar days rather than counting both endpoints. The same date returns zero days; 2026-10-05 to 2026-10-09 returns four days. Use the Working Days Calculator for an inclusive weekday count.
What happens if the second date is earlier?
The total-day result remains non-negative, and the direction says that the second date is before the first. Calendar years, months, and days are calculated from the earlier date to the later date.
Why is one month not always 30 days?
Calendar months have different lengths. The calendar interval uses actual year and month boundaries, while Total days shows the elapsed day count. For example, 2026-01-01 to 2026-02-01 is one month and 31 days.
For accounts, browser storage and access, read the Desklium FAQ.