Updated
Using Date difference calculator
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.
A 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 use 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.
Cite this page
ToolOctopus. “Date difference calculator.” Updated 2026-09-20. 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. Licence and source code.
