DATDate & Time
Date Difference
Find the exact difference between two dates in years, months, and days. Also shows total days, weeks, and hours between the dates.
Try an example
How It Works
Formula
Where
- Milliseconds between the earlier and later date (UTC)
- Whole calendar days between the two dates
- Total hours between the two dates
- Milliseconds in one day (24 × 60 × 60 × 1000)
Enter two dates. The calculator determines which is earlier, then computes the difference broken down into years, months, and days. It also calculates the total number of days, weeks, and hours between the two dates.