AnsRioSmart tools. Clear answers.
Home / Dates & time / Date difference
Dates & time

Date difference

Date difference: Signed calendar days = (UTC end − UTC start)/86,400,000; optional inclusive end

Enter your values ⌁ Runs on your device

Your inputs stay in this browser and are not saved to an account.

YOUR RESULT
Ready when you are.

Enter your values, then select Calculate.

QUICK ANSWER

2

Use the inputs above for your own values. The result follows the method and assumptions shown below.

How it works

Signed calendar days = (UTC end − UTC start)/86,400,000; optional inclusive end

Input definitions

Start date
A complete Gregorian calendar date.
End date
A complete Gregorian calendar date.
Count end date?
Choose No / Yes.

A worked example

Start date
2024-02-28
End date
2024-03-01
Count end date?
No
2

Assumptions & limits

Gregorian calendar dates at UTC midnight. Calendar-day arithmetic, not local elapsed hours. No holidays. End date excluded unless an inclusive option is selected.

Sources & review

Maintained by AnsRio. Methods and examples are reviewed against the stated formula; this is not professional certification.

Method updated 2026-10-17. Reviewed against the stated method and example. Our verification approach.

Report an issue with this tool or suggest an improvement ↗

Common questions

Do daylight-saving changes affect calendar date results?

Date-only operations compare Gregorian calendar dates at UTC midnight. They do not count local elapsed hours. Timestamp operations require an explicit offset; individual tool assumptions state boundary rules.

How does the Date difference tool work?

Signed calendar days = (UTC end − UTC start)/86,400,000; optional inclusive end.

What are the assumptions and limits of Date difference?

Gregorian calendar dates at UTC midnight. Calendar-day arithmetic, not local elapsed hours. No holidays. End date excluded unless an inclusive option is selected.

↗
Private tools for everyday decisions.

No sign-up. Tool inputs stay on your device.

How we work