Days between two dates
days_betweenSigned whole calendar days from the from date to the to date, midnight to midnight in tz: positive when to is later, negative when it is earlier. Endpoints are exclusive, so this is the gap and consecutive dates are 1 apart. Either date may be "today", resolved in tz. For working days between two dates use business_days; to move a date by N days use add_days or subtract_days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ISO date YYYY-MM-DD, or "today" (resolved in tz) | |
| tz | No | IANA timezone that defines "today" (e.g. Africa/Kampala). Default UTC. | UTC |
| from | Yes | ISO date YYYY-MM-DD, or "today" (resolved in tz) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | Yes | The calculated answer (kind-discriminated) | |
| receipt | Yes | Auditable receipt: inputs, timezone, convention, workweek, holiday calendar, exclusions, versions, stable result ID |