Date difference calculator

Count the days and weeks between two dates, with an optional inclusive count.

Privacy: runs in your browser

This tool processes your input in this browser. Inputs and results are excluded from analytics. Draft saving is optional and stays on this device; delete saved text with the draft controls. Loading text from a URL is optional and contacts that server; its URL and your IP address are visible to the server. When a button sends your result to another tool, it waits in this tab until that tool opens it, for up to a minute, and is then deleted.

Copy link includes the inputs you choose to share in the address. Anyone with that link can reopen them. Files and generated results are excluded. Password and key tools share settings only.

More options

Your result

Enter your values to see the result.

More
Keyboard shortcuts

Sharing and starting over

A copied link includes what you entered and your settings, so anyone with it can see them. Leave private text out. Files and results are not included; random draws are made again.

Start over puts the tool back to its starting values and closes any open file or device. Drafts you saved stay on this device until you delete them.

How it works

The ordinary gap is end minus start. Including both dates adds one day. Calendar years and months use the earlier date as the anchor, shortening a month-end date only when the target month is shorter. Reversed dates keep a positive gap and a clear direction.

Worked example

February 28 to March 1, 2024 is 2 days because February has a leap day. Counting both dates gives 3 days.

Before you rely on the result

Uses the Gregorian calendar for all years 0001–9999. These are calendar days, not elapsed 24-hour periods across a daylight-saving change. Calendar gaps always exclude the end date.

Next: Business days calculator

Next: Time duration calculator

Tools for the same job

Help with the result

Cite this page

ToolOctopus. “Date difference calculator.” Updated . https://tooloctopus.com/date-difference-calculator.

Add an access date if your instructions require one.

Citation formatting uses citeproc-js by Frank Bennett and Citation Style Language styles. License and source code.

Find a tool

Type a task, a unit pair, a sum or a time zone. ↓ to choose, Enter to open.