EditSafely

Find the Difference Between Dates

Count the days between two calendar dates on each line (also shown broken down into years, months and days).

Runs on your device, nothing uploaded

Try:
Start date
End date

Output

Count the days between two calendar dates on each line (also shown broken down into years, months and days).

Type or paste above to see the result here.

Example: A short gap

What you paste never leaves this tab

Find the Difference Between Dates is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, whatever you type in is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Find the Difference Between Dates

  1. 1. Pick the two dates. Pick or type a Start date and an End date; the start begins on today and Swap flips them. Numeric dates are read day first unless your browser is set to US English, and the line under the field offers a one-tap switch. To compare many pairs, turn on Many at once and paste one pair per line, such as 2026-07-14 to 2026-07-20.
  2. 2. Read the breakdown. The answer shows the days between the dates, the gap in months and weeks, and rows for weekdays, hours, minutes and seconds. Tick Include the end date to count both ends. In a list, each line gives the day count for its pair.
  3. 3. Copy the results. Copy the differences from the output pane to use in a report, invoice or scheduling calculation.

When to use Find the Difference Between Dates

Find the Difference Between Dates counts the days between two calendar dates on each line, alongside a years, months and days breakdown for the same span. It replaces manually counting a calendar or building a spreadsheet formula for a one-off comparison.

  • Calculating a project duration. A project ran from 2026-07-14 to 2026-07-20, and this tool confirms the exact day count for a status report without opening a spreadsheet.
  • Checking a rental period. A short-term rental agreement lists a check-in and check-out date, and finding the difference confirms the number of nights to bill the guest.
  • Verifying an SLA window. A support ticket needs to stay within a 5 business day resolution window, and checking the raw day count between the opened and closed dates is the first step in that audit.
  • Measuring an incubation period. A researcher tracking the gap between an exposure date and symptom onset date across several case records wants the day count for each pair computed consistently.

Examples

A short gap

Input

2026-07-14 to 2026-07-20

Output

6 days

One pair per line

Input

2000-01-01, 2000-12-31
2026-07-14 2026-07-14

Output

365
0

About the Find the Difference Between Dates tool

Find the Difference Between Dates does its work locally, right in the browser. Count the days between two calendar dates on each line (also shown broken down into years, months and days). There is no upload step, no queue and no account, and your data never travels over the network.

It belongs to the Time Tools collection on EditSafely, a set of 90 small, focused Time utilities that share the same instant, private workspace.

You can shape the output with the Include the end date (+1 day) setting, and the result refreshes the moment you change it. 2 worked examples further down the page show exactly what the tool produces for real inputs.

Running locally also makes the tool fast and dependable: results appear as soon as your input does, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.

Frequently asked questions

Is Find the Difference Between Dates free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All Time Tools →