Date calculator

Date difference calculator

Find the elapsed calendar days between two dates without relying on local time zones or daylight saving time.

Calculate a date difference

Use the calendar date where the interval begins.

Use the same date or a later calendar date.

Result

Choose two dates to calculate the interval.

Your dates stay in this browser. They are not stored, logged, or added to the URL.

Calculation method

Calendar day difference

ordinal day of end date - ordinal day of start date

Each date is converted to an integer calendar day, so the result is not affected by local time zones.

Examples

July 1 to July 17, 2026

start = 2026-07-01, end = 2026-07-17

result = 16 days, 2 weeks and 2 days, 384 hours

Leap day included

start = 2024-02-28, end = 2024-03-01

result = 2 days

Same date

start = 2026-07-14, end = 2026-07-14

result = 0 days

FAQ

Is the start date counted?

No. The calculator measures elapsed days, so the same start and end date gives zero days.

Does daylight saving time affect the result?

No. The calculation uses calendar day numbers, not local times or timestamps.

Can the end date be before the start date?

No. Use the swap button if the dates were entered in the opposite order.

Sources