🧮 DateDiff Utility
Compare two dates and get the difference (days / weeks / months / years).
Today: —
🧾 Inputs
Vanilla JS • Accurate Date Math
Start Date
(Required)
End Date
(Required)
Auto-swap if start > end
Inclusive day count
Calculate Difference
Demo (Last 90 Days)
Clear
Tip: Pick start/end dates, then click “Calculate Difference”.
🔹 “Months/Years” are calculated using real calendar boundaries (not just days ÷ 30).
🔹 “Days/Weeks” use exact day difference.
📊 Results
Waiting…
Total Days
—
Total Weeks
—
Calendar Months
—
Calendar Years
—
Range: —
Breakdown: —