date_calc
Calculate days between dates, add or subtract time, count business days, compute ages, and convert time zones with precise date arithmetic.
Instructions
Date arithmetic: days between dates, adding time, business days, weekdays, ages, time zones.
operation and its arguments:
diff: start, end, unit days|weeks|months|years (also returns the calendar breakdown years/months/days).
add: start plus days/weeks/months/years (negative to subtract).
business_days: start, end; weekends and public holidays excluded, both ends counted (include_end=false to stop the day before). Default Spain, Madrid calendar; pass country (ISO code: FR, DE, US...) and subdivision.
weekday / iso_week: value. age: birth_date (+ on, default today).
convert_tz: value, from_tz, to_tz (IANA names: Europe/Madrid, America/New_York, UTC). parse: text. Dates: prefer YYYY-MM-DD. "today"/"hoy" works. Numeric dates are read day-first as in Spain (03/04/2026 = 3 April); Spanish month names work. Cite as its
cite, e.g. [L-000042].
Keywords: how many days between, days until, business days, working days, add days, deadline, time zone, what day of the week, how old, cuántos días entre, cuántos días faltan, días laborables, días hábiles, sumar días, plazo, zona horaria, qué día de la semana, qué edad tiene.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | ||
| end | No | ||
| days | No | ||
| text | No | ||
| unit | No | days | |
| start | No | ||
| to_tz | No | ||
| value | No | ||
| weeks | No | ||
| years | No | ||
| months | No | ||
| country | No | ES | |
| from_tz | No | ||
| operation | Yes | ||
| birth_date | No | ||
| include_end | No | ||
| subdivision | No |