We use essential cookies to make this site work. Optional analytics cookies help us improve your experience. Privacy Policy
Date Difference Calculator
Calculate the exact difference between two dates in years, months, days, weeks, and hours. Free, private, browser-based. Free, private, in-browser.
How to use
Enter Start Date — Select or type the first date
Enter End Date — Select or type the second date (defaults to today)
See Results — View the difference in multiple units
What Is a Date Difference Calculator?
A date difference calculator computes the exact time elapsed between any two dates. The result is expressed in multiple units: years, months, days, total days, weeks, and hours. This is useful for project planning, age calculations, contract durations, and general curiosity.
How Date Differences Are Calculated
Calendar-based differences (years, months, days) account for the actual number of days in each month and leap years. This means "1 month" can be 28, 29, 30, or 31 days depending on which month is being crossed. Total days and hours use fixed conversions from milliseconds.
This tool calculates calendar days (including weekends and holidays). For business day calculations, you would need to exclude weekends and potentially public holidays, which vary by country and region.
Date Math Quirks
Date arithmetic has surprising edge cases. Adding 1 month to January 31 gives February 28 (or 29 in a leap year), not March 3. Adding 1 month to March 31 gives April 30, not May 1. These inconsistencies arise because months have different lengths — there's no universally "correct" way to handle them.
Privacy
All calculations run in your browser. No dates are sent to any server.