Date Difference Calculator
Calculate the exact difference between two dates in days, weeks, months, years, and business days.
This is useful in a wide range of everyday and professional scenarios. Project managers use it to calculate the number of working days available for a deliverable. HR departments rely on date arithmetic to determine employee tenure, probation periods, and leave balances. Students use it to count the days remaining before an exam, and event planners use it to track how far away a target date is.
The order of the two dates does not matter. The calculator always returns absolute (positive) values, so you can enter the earlier date in either field. Months and years are computed as decimal approximations based on average month and year lengths, giving you a quick sense of scale even when the two dates do not fall on neat calendar boundaries.
All calculations run entirely in your browser using JavaScript Date objects. No data is transmitted to any server, and no sign-up or account is needed.
Calculator
Results
How to Use
- Enter the start date in YYYY-MM-DD format.
- Enter the end date in YYYY-MM-DD format.
- View the difference in days, weeks, months, years, and business days.
FAQ
Does the order of the dates matter?
No. The tool always returns the absolute difference, so you can enter the dates in any order.
How are business days calculated?
Business days exclude Saturdays and Sundays. Public holidays are not excluded because they vary by country and region.
How are months and years calculated?
Months are approximated by dividing the total days by 30.4375 (average days per month). Years are approximated by dividing total days by 365.25 to account for leap years.
Is my data safe in the browser?
Yes. All calculations run locally in your browser using JavaScript. No data is sent to any server.
Learn More
Guides that feature this tool
Unit Conversions You Actually Need
The everyday conversions for cooking, travel, fitness, and science.
5 min readDate, Time, and Timezone Calculations: A Practical Guide
Master date differences, timezone conversions, Unix timestamps, and daylight saving quirks with practical tools and clear explanations.
7 min read