date_add
Add (or subtract, with negative numbers) years, months, weeks, days, hours and minutes to a date, or add business days (skipping Saturdays and Sundays). Month ends are clamped (31 Jan + 1 month = 28/29 Feb). Use to compute due dates and expiries. Costs $0.001 in USDC on Base per successful call, paid with x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Start date or ISO timestamp | |
| days | No | Days to add | |
| months | No | Months to add | |
| businessDays | No | Weekdays to add (skips weekends) |