EVERYDAY / DATES

Days between dates

Measure the number of calendar days between any two dates.

Last reviewed:

← All tools

Your numbers

◈ Your values stay in your browser. No account needed.
YOUR RESULT

Enter your numbers to see a result.

WORKED EXAMPLE

Days between dates: a worked example

With start date 2026-01-01, end date 2026-10-20, the days between dates is 292 days.

Inputs
Start date2026-01-01
End date2026-10-20
Results
Days between dates292 days
Full weeks41
Extra days5 days
Hours7,008 hours
THE METHOD

How it works

Dates are treated as calendar dates without a timezone, avoiding errors caused by daylight-saving time changes. Both start and end are not counted inclusively.

FormulaDays = |UTC(second date) − UTC(first date)| ÷ 86,400,000.
ASSUMPTIONS

Assumptions and limits

  • Results are estimates based on the inputs and assumptions on this page, not professional advice.
  • Try this: use “Save scenario A”, change one input and compare the two results side by side.
QUESTIONS

Frequently asked questions

How is the result of the “Days between dates” calculated?

Days = |UTC(second date) − UTC(first date)| ÷ 86,400,000. Dates are treated as calendar dates without a timezone, avoiding errors caused by daylight-saving time changes. Both start and end are not counted inclusively.

What does the worked example show?

With start date 2026-01-01, end date 2026-10-20, the days between dates is 292 days. Full weeks: 41; Extra days: 5 days; Hours: 7,008 hours.

What assumptions and limits apply?

This is an estimate based on the inputs and assumptions shown on this page, not professional advice. Check anything with financial, health or safety consequences independently.

Is my data private?

Yes. Calculations run in your browser and your numbers are not sent to a server. A share link contains the inputs you choose to share, so check it before sending it to anyone.

FOR WEBSITE OWNERS

Embed this calculator on your site

Free to use. Paste this where you want the calculator to appear. It resizes itself and links back to Calculator786.