Date difference
Published
Count days, weeks, and calendar years/months between two dates. Choose elapsed days for a duration, or include the end date when both boundary dates belong in your count. Calendar years, months and remaining days describe the unchanged anniversary interval.
Free to use. No email or account required.
Bookmark
Bookmark this tool
Save this link in your browser’s bookmarks.
Paste this link into the address of a new or existing bookmark.
On desktop, drag Date difference to your bookmarks bar.
Only the tool’s link is shared. Your inputs and results are not included.
Share
Your inputs
Choose your dates and the calculation convention. Results update as you edit.
Calculations run in your browser. Inputs are not saved or sent to analytics.
How it works
Formula
- Include end date (+1): +1
Input and formula key
Your result
Complete the inputs to see your result.
Sources
- US Naval Observatory — Calendars and conversion algorithmsSources reviewed: 2026-10-05
Assumptions and limitations
The end date must not precede the start. Whole calendar years and months are counted separately from total days, with month ends clamped. Counting the end date adds one day to the total. Whole weeks are recalculated from that total, and the calendar interval stays the same. Times and time zones are not used.
How to use this tool
Set up the inputs
Enter the earlier date first and the later date second. Choose elapsed days for a duration, or include the end date when both boundary dates belong in your count. Dates are civil dates; no time or time zone is needed.
Worked examples
-
Count the days in a booking
- From 2026-01-01 to 2026-01-08, excluding the end date, the interval is one week. Including the end date adds one day; it does not change the dates themselves.
- Total days = 7; Include end date (+1): 7 + 1 = 8.
Frequently asked questions
How should I read the result from Date difference?
Total days and whole weeks use the chosen counting rule. Calendar years, months and remaining days describe the unchanged anniversary interval. Including the end adds one day to the count, not one day to that calendar interval.
Processing and privacy
The calculation or transformation runs in your browser. The tool does not send its input values or generated output to an application server. Loading a page still makes infrastructure requests; optional analytics and Google consent messages have separate controls.
Privacy Policy. Privacy & preferences in the footer controls optional analytics.
Help and feedback
Consult the linked sources for definitions and reference data. Contact Support if you have a question or notice a problem.
Read about calculation methods · Report a problem to emonster


