Date Difference Calculator
Select Two Dates
Quick Presets
-
Total Days
-
Weeks
-
Months
-
Years
Detailed Breakdown
Exact Duration-
Total Hours-
Total Minutes-
Total Seconds-
Start Day-
End Day-
Weeks + Days-
Leap Years Included-
Working Days Analysis
-
Business Days (MonβFri)
-
Weekend Days (SatβSun)
οΈ Business days exclude weekends but do not account for public holidays, which vary by country.
οΈ Visual Timeline
π
First calculate a date difference in the Calculator tab,
then come back here to see fun facts about that time period!
then come back here to see fun facts about that time period!
How Date Difference is Calculated
Total Days
The simplest and most accurate method - convert both dates to milliseconds and subtract.
Total Days = (End Date in ms β Start Date in ms) Γ· 86,400,000
86,400,000 = milliseconds in one day (24 Γ 60 Γ 60 Γ 1000)
86,400,000 = milliseconds in one day (24 Γ 60 Γ 60 Γ 1000)
Weeks & Remaining Days
Weeks = Math.floor(Total Days Γ· 7)
Remaining Days = Total Days % 7
Remaining Days = Total Days % 7
Exact Years, Months, Days
Years = End Year β Start Year (adjusted for month/day)
Months = Remaining months after full years (0β11)
Days = Remaining days after full months
Months = Remaining months after full years (0β11)
Days = Remaining days after full months
Business Days Calculation
Business days are calculated by iterating through each day and excluding Saturdays and Sundays.
For each day from Start to End:
If day is MondayβFriday count as business day
If day is Saturday or Sunday count as weekend
If day is MondayβFriday count as business day
If day is Saturday or Sunday count as weekend
Hours, Minutes & Seconds
Hours = Total Days Γ 24
Minutes = Hours Γ 60
Seconds = Minutes Γ 60
Minutes = Hours Γ 60
Seconds = Minutes Γ 60
Leap Year Count
A year is a leap year if divisible by 4, except century years must be divisible by 400.
isLeap(y) = (y % 4 === 0 && y % 100 !== 0) || (y % 400 === 0)
Try These Examples
Click any example to instantly calculate.
π Moon Landing Anniversary
July 20, 1969 July 20, 2025 - how long since Apollo 11?
π Y2K to 2025
January 1, 2000 January 1, 2025 - the millennium gap
World Wide Web Birthday
Aug 6, 1991 Aug 6, 2025 - since WWW went public
Since First iPhone
Jan 9, 2007 Jan 9, 2025 - Steve Jobs' famous announcement
π¦ Since COVID Pandemic
March 11, 2020 March 11, 2025 - WHO declaration anniversary