Date Difference Calculator
A precise date-difference calculator. Pick two dates and see the gap in every common unit, plus a calendar Y/M/D breakdown and a count of business days between them.
Difference
0y 0mo 0d
Pick two dates above.
Total days
0
Total weeks
0
Total months
0
Hours
0
Minutes
0
Business days
0
Method
How this calculator works
The difference between two dates is the elapsed time between them. We display it as a calendar breakdown plus several total-unit views.
difference = endDate − startDate
# Calendar breakdown
years = end.year - start.year
months = end.month - start.month
days = end.day - start.day
# borrow if days/months are negative
# Totals derive from the millisecond difference
totalDays = floor(|ms| / 86,400,000)
totalWeeks = floor(totalDays / 7)
totalHours = floor(|ms| / 3,600,000)
totalMinutes = floor(|ms| / 60,000) - Pick a start date and an end date — either order, the calculator shows the absolute gap.
- It computes the raw millisecond difference and divides by the right constants to produce days, weeks, hours, and minutes.
- A separate calendar arithmetic pass produces the human-friendly Y/M/D breakdown.
- Business days are counted by stepping through each day and skipping Saturdays and Sundays.
Examples
Worked examples
Real numbers, end-to-end results.
Jan 1, 2025 → Jun 5, 2026
1 yr, 5 mo, 4 days · 521 days · 372 business days
Total months: 17.
Mar 12, 2000 → Jun 5, 2026
26 yrs, 2 mo, 24 days · 9,581 days
About 1,369 weeks.
Use cases
When to use it
- Plan project timelines — how many business days are left until launch?
- Calculate the precise age of a relationship, anniversary, or pet.
- Verify employment-tenure milestones (e.g. five-year vesting cliffs).
- Schedule reminders for events that are exactly N days, weeks, or months away.
FAQ
Frequently asked questions
How is the difference calculated?
Does it account for leap years and DST?
What counts as a "business day"?
Why does swapping dates not change anything?
Related tools
All calculators →Age Calculator
Calculate your exact age in years, months, weeks, days, hours and minutes.
Time Zone Converter
Convert any time across 25+ major cities worldwide — DST and offsets handled automatically.
Word Counter
Count words, characters, sentences, paragraphs, and estimate reading time instantly.