Date Difference Calculator
Find the exact number of days, weeks, months, and years between any two dates — including business days.
Enter your values and click Calculate
How It Works
Both dates are converted to JavaScript Date objects at midnight local time. The earlier timestamp is subtracted from the later one and divided by 86,400,000 milliseconds (one day) to get total calendar days. For the years-months-days breakdown, the calculator walks month by month from the earlier date, borrowing days correctly when the end day is less than the start day and borrowing months when the end month is less than the start month. Weeks are total days ÷ 7 with the remainder as extra days. Business days are tallied by iterating each day in the range and skipping any day where getDay() returns 0 (Sunday) or 6 (Saturday). The calculator accepts dates in either order and always returns a positive result.