Date Difference Calculator

Measure the calendar-day distance between two dates in either order.

Try the calculator

Adjust the values below to get a clear estimate.

FREE TOOL

UTC calendar day subtraction

Each validated date is normalized to midnight UTC. Subtracting the timestamps and dividing by the exact number of milliseconds per day gives whole calendar days.

Signed days = (second date − first date) / 86,400,000

Worked example

Across a leap year

Inputs: firstDate: 2024-02-28 · secondDate: 2024-03-01

Illustrative result: 2 calendar days

February 29 is a real calendar day in 2024, so the dates are two days apart.

Good to know

Frequently asked questions

What if the second date comes first?

The absolute distance remains positive and the signed result identifies the direction.

Are both endpoint dates included?

No. This reports elapsed date boundaries; use the business-day calculator for an inclusive weekday count.