Date Difference Calculator

Days and weeks between two dates

Free date difference calculator: find the exact number of days — and whole weeks — between any two dates. Enter both dates, get the gap instantly, leap years handled.

How to use Date Difference Calculator

  1. Enter the first date — year 1900 to 2100, month 1 to 12, day 1 to 31.
  2. Enter the second date the same way.
  3. Press Calculate and read the total days and whole weeks.
  4. Copy the result with one click.

Features

  • Total days between two dates
  • Whole weeks in the gap
  • Leap-year safe UTC calculation
  • One-click worked-example presets
  • Copy result to clipboard

Frequently asked questions

How do you calculate the difference between two dates?

Convert both dates to UTC timestamps, subtract the earlier from the later, and divide by 86,400,000 — the milliseconds in a day. The result is the total calendar days; dividing that by 7 and rounding down gives the whole weeks. That timestamp method handles leap years and months of 28, 29, 30 or 31 days automatically.

How many days are there between 1 January 2020 and 1 January 2021?

366 days — 2020 is a leap year, so the span holds one extra day. That is the tool's first preset: 366 days, or 52 whole weeks (52 × 7 = 364, with 2 days left over).

How many days are there from 1 January 2026 to 17 October 2026?

289 days — 41 whole weeks. The tool's 2026 preset counts January through September (273 days) plus 16 more days into October. Copy gives "Difference: 289 days".

Does the calculator count the end date?

No — it counts the gap between the two dates, so the same date twice is 0 days. 15 June 2000 to 20 June 2000 is 5 days, not 6: the tool's preset shows exactly that. If you need the end date counted, add 1 to the result.

What dates can I enter?

Any year from 1900 to 2100, month 1 to 12 and day 1 to 31. The order does not matter — the tool takes the absolute difference, so the later date can go first. The result is always a whole number of days.

Is this the same as business days?

No. This calculator counts calendar days — every day in the span, weekends included. Business days exclude Saturdays, Sundays and holidays; for that count use the Business Days Calculator or the Working Days Calculator, linked in the Related tools section.

Is this an online DATEDIF calculator?

For day counts, yes - like Excel's DATEDIF with the D unit, it finds the exact number of days (plus whole weeks) between any two dates. Pick your start and end dates above.

Login to use this free online tool. Create a free account to get started.

Featured on Twelve Tools Hunt for Tools Featured on LaunchBuff Launch Llama Tools Launch your MCP Top Web Development Companies in the US - OnToplist.com Designer Listings Listed on SeeWhatNewAI Featured on SubmitMySaas Featured on AI Agents Directory Product Wing SaaS Wheel Featured on Stremit Featured on Thank John We Are Founders SubmitMySaas ShinyLaunch SaaS Tools Dir Featured on SaasHunt Product List Dir Featured on ShowMeBestAI Listed on Best-AI.org Featured on SaaSCity Listed on LaunchPact CodexFuse Solution on goodSaaS Featured on IndieLaunch Featured on BestAIApps AI X Collection Featured on SemiLaunch Listed on AlterBase We Like Tools codexfuse.dev LaunchClash Featured on Next Launch