date_calc
Calculate exact intervals between two ISO-8601 dates in days, weeks, months, years, hours, minutes, seconds, or business days. Uses UTC and true calendar arithmetic.
Instructions
Interval between two ISO-8601 dates in days, weeks, months, years, hours, minutes, seconds or businessDays (Mon-Fri). Months and years use true calendar arithmetic, not 30/365-day approximations. All math is UTC.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End date, same formats | |
| from | Yes | Start date, e.g. 2026-01-15 or 2026-01-15T08:30:00Z | |
| unit | No | Unit for the result (default days) |