Date Difference Calculator
Calculate the exact number of days, weeks, and calendar years/months/days between two dates.
Inputs
Result
Fill in the fields to see your result.
Formula
The total day count is the absolute difference between the two dates in milliseconds, divided by the number of milliseconds in a day. The calendar breakdown borrows days from the previous month and months from the previous year, the same way you'd count by hand on a calendar.
totalDays = |end − start| / 86,400,000 msStep-by-step
- 1
Enter the start date
Pick the earlier or later of the two dates — order doesn't matter.
- 2
Enter the end date
Pick the other date you want to compare against.
- 3
Read the difference
See the calendar breakdown (years, months, days) plus the total days and weeks between the two dates.
Examples
First quarter span
- start Date
- 2024-01-01
- end Date
- 2024-03-15
74 total days, 10 weeks (0 years, 2 months, 14 days)