date_calculator
Calculate date differences, or add and subtract days from a given date. Provides precise results using YYYY-MM-DD format.
Instructions
Calculate the difference between two dates, or add/subtract days from a date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days to add or subtract. Required for "add" or "subtract". | |
| date1 | Yes | The starting date, in YYYY-MM-DD format. | |
| date2 | No | The second date, in YYYY-MM-DD format. Required for "difference". | |
| operation | Yes | One of "difference", "add", or "subtract". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |