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.
"How long between these two dates?" has at least five legitimate answers, and they disagree with each other:
| Answer in | How it is derived |
|---|---|
| Days | Simple subtraction, if both dates are normalised to the same time and zone |
| Weeks | Days ÷ 7 — but decide whether the endpoints count |
| Months and days | Calendar-aware: 15 January to 15 March is exactly 2 months, not 59 days |
| Years and months | The convention used for ages and for contract terms |
| Business days | Weekends excluded, and usually holidays too |
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.
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.