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!

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)

Weeks & Remaining Days

Weeks = Math.floor(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

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

Hours, Minutes & Seconds

Hours = Total Days Γ— 24
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