Add or Subtract Days
add_daysRead-onlyIdempotent
Find the date N days (or N business days) after or before a date, with its weekday and Japanese era date (wareki). unit "business" skips Saturdays, Sundays and Japanese national holidays; "weekdays" skips only weekends. Good for deadlines in Japan. N from 0 to 100,000.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | How many days to move. | |
| lang | No | Language of the user. Use "ja" when the user writes in Japanese (affects the source link and notes). Default "en". | |
| unit | No | "calendar" (default), "business" (Japan: skip weekends and national holidays) or "weekdays" (skip weekends only). | |
| direction | No | Default "after". | |
| start_date | Yes | Date in YYYY-MM-DD (1873-01-01 to 2200-12-31) |