Date Difference

Enter two date-times and instantly see the difference in days, hours, minutes and seconds, or how many days until a date. 100% client-side.

Every difference needs a unit

"How long between these two dates?" has at least five legitimate answers, and they disagree with each other:

Answer inHow it is derived
DaysSimple subtraction, if both dates are normalised to the same time and zone
WeeksDays ÷ 7 — but decide whether the endpoints count
Months and daysCalendar-aware: 15 January to 15 March is exactly 2 months, not 59 days
Years and monthsThe convention used for ages and for contract terms
Business daysWeekends excluded, and usually holidays too

The inclusive versus exclusive trap

Do you count both endpoints? A one-day event on 1 June covers one day, not two, but a hotel stay from 1 June to 2 June is one night. Off-by-one errors here are the single most common mistake in date arithmetic, and they are usually invisible until a report does not reconcile.

Where it is used

Time zones and the same-instant problem

If the two dates carry times and sit in different zones, normalise both to UTC first, or to a single named zone. Two timestamps that look identical as local strings can be hours apart in reality — and crossing a daylight-saving boundary can move a difference by an hour even when the dates themselves have not changed.

Related tools

Date calculator Unix timestamp Time zone converter

FAQ

What time zone is used for the difference?
The entered date-times are parsed in your browser's local time zone, which suits general scheduling and countdowns; for cross-time-zone work, use the agreed time zone.
Is my date uploaded?
No. Everything is done locally in your browser — nothing is sent.