What you provide
What you provide
- Start and end dates
- Whether your use case wants elapsed time or both dates counted
DATE / ELAPSED OR INCLUSIVE
Compare two dates as calendar years, months, and days, with an explicit choice between elapsed days and counting both dates.
Use boundary
Calendar difference uses real month lengths. Total days uses calendar boundaries, then adds one only when you deliberately choose inclusive counting.
Calendar difference uses complete years, months, and days. Total days uses UTC calendar boundaries, with one added only for inclusive counting.
What you provide
What you receive
Use boundary
Business-day, holiday, deadline, timezone, and contractual counting rules are not applied. The dates are treated as plain calendar dates.