🧮

Date Difference Calculator

Difference between two dates

About this tool

This free Date Difference Calculator measures the exact span between any two dates — past or future — and expresses it every way you might need it: full years, months and days, total weeks, total days, total hours, minutes and even seconds, plus a count of weekdays versus weekend days between the dates. Whether you're counting down to a deadline, working out how long a project actually ran, checking contract durations, or settling how many days until the next public holiday, the answer appears the moment both dates are set — updating live as you edit either side. Counting time between dates by hand is deceptively hard, and this is one of those problems where being 'close' isn't good enough. Months range from 28 to 31 days, leap years insert an extra day every four years (with century exceptions), and the inclusive-versus-exclusive counting question — does the end date itself count? — silently changes the answer by one. A business contract measured one way can be off by a full day compared to a tenancy measured another way, and a hand count across a few months almost always misses a leap day somewhere. This tool uses true calendar arithmetic with the boundary rules made explicit, so the result is the exact one rather than an approximation you have to second-guess. The workflows this tool fits are everywhere in ordinary work and life: project managers measuring sprint lengths, delivery windows and milestone gaps; HR teams computing tenure, probation periods and leave entitlements; lawyers and finance staff verifying contract terms, interest periods and notice deadlines; students counting days until exams or semester ends; travellers calculating trip lengths for visa rules that count days strictly; expectant parents tracking pregnancy weeks; and anyone simply curious how many days — or weekends — stand between today and something they're looking forward to. The weekday/weekend split is the detail people discover they needed: 30 calendar days and 22 working days are very different deadlines. Everything runs locally in your browser. Every calculation is performed entirely by client-side JavaScript using your device's clock — the dates you enter are never sent to any server, never logged and never stored. After the page loads you can disconnect from the internet and every feature keeps working identically. Close the tab and nothing remains.

Frequently asked questions

How do I calculate the difference between two dates?+

Set the start date and the end date — either can be in the past or the future — and the difference appears instantly in multiple formats at once: the calendar-style breakdown in years, months and days, plus the flat totals in weeks, days, hours, minutes and seconds. There's no button to press; both directions work equally, so you can measure from a past event to today, from today to a future deadline, or directly between two historical dates.

Does the day count include the end date or not?+

By convention, this calculation measures the elapsed time between the two dates exclusively — from the start of the first date to the start of the second — so March 1 to March 31 counts as 30 days, not 31. This matches how tenancies, subscriptions and most contracts are measured. If your situation requires counting both endpoints inclusively (some legal and event-planning contexts do), simply add one day to the day count shown. The calculator makes the convention explicit rather than leaving you to guess which one it used.

How are leap years handled in the calculation?+

Fully and correctly. The tool uses real calendar arithmetic on actual dates rather than averaging the year at 365.25 days, so a leap day that falls inside your measured period is counted exactly where it occurs — February 29th adds a real day to spans crossing it, and century rules (1900 was not a leap year; 2000 was) are respected. This is why a span of exactly one year always measures 365 or 366 days depending on the actual dates, instead of a rounded average that drifts from reality.

What does the years-months-days breakdown actually mean?+

The calendar breakdown borrows the way humans talk about elapsed time: it counts complete years first, then complete months beyond that, then the leftover days — the same way you'd say '2 years, 4 months and 11 days'. Month lengths are handled correctly during the borrowing, so measuring from January 31st to February 28th reads as one month, not '0 months and 28 days', and a span ending on the 31st of a 30-day month doesn't produce an impossible day count. Alongside it you get the raw totals — total days, weeks, hours — because different tasks need different units.

How do I count working days between two dates?+

The results include a split of the span into weekdays and weekend days — Saturdays and Sundays are excluded, and the remaining Monday-to-Friday days are counted as working days. This matters whenever a deadline is stated in business days: a '30-day' turnaround is really about 22 working days, and delivery estimates, payment terms and SLA windows are frequently quoted either way without saying which. Note that public holidays aren't subtracted, since they vary by country and region — if your deadline excludes specific holidays, subtract them from the weekday count shown.

Can I measure from a past date to a future date across years?+

Yes — there's no practical limit on the span. Measuring across decades works the same as across days, which makes the tool useful for questions like exact tenure at a job, age at a historical event, how long between two product launches, or days from a company's founding to today. Very long spans automatically show the breakdown at its most useful level — years and months first — while short spans emphasize days, hours and minutes.

Why do some calculators give a different number of days?+

Almost always one of three reasons: they count the end date inclusively (adding one), they divide a rough total by an average month length (introducing drift of several days over long spans), or they handle time zones differently — measuring from UTC midnight versus local midnight can shift a boundary-day count. This tool uses local calendar dates with the exclusive convention and true calendar arithmetic, and states those choices plainly, so if another tool disagrees by one day you can usually identify the convention it was using.

Is my data safe — are the dates sent anywhere?+

No, nothing leaves your device. Every calculation runs entirely in your browser using client-side JavaScript: the dates you enter are never transmitted to any server, never logged, and never stored. After the page loads you can disconnect from the internet entirely and the tool works identically — a simple way to verify that no network round-trip is involved. Refreshing the page clears everything; no history of the date ranges you measured is kept anywhere.