A leap year, counted correctly
2024 contains February 29, so the year-long gap is 366 days.
Input
Start: 2024-01-01 · End: 2025-01-01Output
366 days · 52 weeks · 8,784 hoursCount the days, weeks, and hours between any two dates instantly — for deadlines, notice periods, trips, tenures, and interest-day math.
Content last reviewed
Choose the earlier date in the first field.
The gap appears immediately — no button to press.
The difference is shown as total days, weeks, and hours.
2024 contains February 29, so the year-long gap is 366 days.
Input
Start: 2024-01-01 · End: 2025-01-01Output
366 days · 52 weeks · 8,784 hoursThe tool reports nights-between; contexts that count both endpoint days need one more.
Input
Start: 2026-03-01 · End: 2026-03-05Output
4 days (exclusive) — a range counting both the 1st and the 5th is 5 daysHow many days between two dates? It sounds trivial until you actually need it: counting down to a project deadline, measuring a notice period, calculating interest days, checking employment tenure for a form, or verifying a rental term. Mental math across month boundaries fails constantly — months run 28 to 31 days and leap years add another trap.
This calculator takes a start and an end date and shows the gap three ways at once: total days, whole weeks, and hours. It works on real calendar dates, so a range crossing February in a leap year comes out right, and the answer appears the instant you pick the second date — whether it is 3 days or 3,650.
One convention worth knowing: date ranges can be counted exclusively or inclusively. "From the 1st to the 5th" is 4 days if you count the nights between (exclusive) and 5 if you count both endpoint days. This tool reports the exclusive difference — the same result a spreadsheet gives when you subtract dates — so add 1 when your context counts both ends. If the end date precedes the start, the counts show as negative, the sign simply indicating direction. For working days that skip weekends, the Business Days Calculator is the sibling tool.
Pick the Start date in the first field.
Pick the End date in the second — the sidebar updates immediately with the difference in days, weeks, and hours.
Add 1 to the days figure when your situation counts both endpoint dates (hotel-style "day 1 to day 5" ranges, some legal conventions).
If you entered the dates in reverse, the counts appear negative — swap them for a positive result.
For a count that skips Saturdays and Sundays, switch to the Business Days Calculator.
Total days, whole weeks, and hours from the same pair of dates, updating live.
Leap years and month-length differences are handled by counting actual dates, not estimating.
The exclusive difference — identical to subtracting the two dates in a spreadsheet.
Works equally for a 3-day gap and a 30-year one.
Count the days remaining to a submission, launch, or contract date.
Measure the exact length of a notice period, stay, or subscription term.
Work out how long you have held a job, visa, or address.
Get the day count that interest and pro-rata calculations are based on.
The two dates are subtracted as timestamps and the result floored into whole days; weeks are the days divided by seven (whole weeks only) and hours the same span in hours. Because the subtraction operates on actual calendar dates, leap days and varying month lengths are inherently correct — no rules of thumb involved.
The count is exclusive: it measures the span between the dates, matching what a spreadsheet's date subtraction returns. A reversed pair (end before start) yields negative values rather than an error — the magnitude is the same gap, the sign the direction.
Two date fields — everything else is computed. There are no other settings to configure.
The end date precedes the start date. The magnitude is still the correct gap; swap the fields for a positive count.
Almost always the inclusive/exclusive convention. This tool counts the days between the dates; contexts that count both endpoint days expect one more. Decide which your situation uses before comparing.
The calculator counts days, weeks, and hours — it does not decompose into calendar months and years, whose varying lengths make such breakdowns convention-dependent (the Age Calculator handles the birth-date case). Times of day are not part of the input, so partial days cannot be expressed. Weekends and holidays are included; working-day counting is the Business Days Calculator's job.
Both dates are processed in your browser only — nothing is uploaded, logged, or stored.
Decide up front whether your context counts both endpoint days, and add 1 if it does.
Let the tool count long spans rather than estimating with 365-day years — leap years drift the estimate.
Use Business Days for anything measured in working days; this count includes weekends.
For events pinned to a time of day across zones, resolve the timezone before counting dates.
Sanity-check contract deadlines by counting from the definition in the document, not from memory.
Start from the written definition. Contracts, visa rules, and billing terms define their ranges precisely — "within 30 days of receipt", "both dates inclusive" — and the calculator's job is to execute that definition, not guess it. Identify the start event, the end event, and the inclusivity convention, then count.
When a figure matters (a filing deadline, an interest amount), verify in both directions: count the days, then add them back to the start date and confirm you land on the end date. The exclusive convention makes this round-trip exact.
And for recurring needs — sprint lengths, invoice periods — note the convention you settled on once, so every future count uses the same rule.
The difference is computed client-side as the millisecond gap between the two parsed dates, floored to whole days; weeks are floor(days ÷ 7) and hours floor(ms ÷ 3,600,000). Date-only inputs parse at midnight, so daylight-saving transitions inside the range do not disturb the whole-day count in practice. Reversed inputs produce signed (negative) results.
Project managers and freelancers counting to deadlines, HR and tenants measuring notice periods, finance people needing interest-day counts, and anyone filling a form that asks "how long". If the question is "how many working days", the Business Days Calculator answers it; if it is "how old", the Age Calculator does.
Exclusive — it counts the full days between the two dates, the same as subtracting them in a spreadsheet. When your context counts both endpoint days (some legal and billing wordings do), add 1.
Yes — the difference is computed from actual calendar dates, so a range spanning February 29 is counted correctly. The 2024-to-2025 example showing 366 days is that behaviour at work.
The counts show as negative numbers — the same gap with a minus sign indicating direction. Swap the two fields to get the positive count.
No — it reports days, weeks, and hours, because month-and-year breakdowns depend on convention (months vary in length). For a years-months-days decomposition from a birth date, use the Age Calculator.
Use the Business Days Calculator for a weekend-free count. Public holidays vary by country and employer, so subtract the ones relevant to you from its result.