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
Whether you're counting down to an event, calculating a contract duration, tracking a project deadline, or figuring out someone's age to the day, our date difference calculator gives you the complete breakdown. Enter any two dates and instantly see the gap expressed in years, months, weeks, days, hours, and minutes — plus a separate business-days count that excludes weekends.
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.