date_add_subtract
verifiedv0.1Adds or subtracts days, weeks, months or years from one calendar date in the browser. Pass startIso as YYYY-MM-DD (exactly 10 chars), amount as a non-negative integer (0–10000), and optional unit and direction. startToday is UI-only — always pass startIso. Variant URLs are not a second machine Tool — pass unit and direction explicitly. Do not use this to measure the span between two dates (that is date_duration).
Updated 9/3/2026 · Created 9/3/2026
Input Schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"startIso",
"amount"
],
"properties": {
"unit": {
"enum": [
"days",
"weeks",
"months",
"years"
],
"type": "string",
"default": "days"
},
"amount": {
"type": "integer",
"maximum": 10000,
"minimum": 0
},
"startIso": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"maxLength": 10,
"minLength": 10
},
"direction": {
"enum": [
"add",
"subtract"
],
"type": "string",
"default": "add"
},
"startToday": {
"type": "boolean",
"default": true
}
},
"additionalProperties": false
}Full Contract
{
"name": "date_add_subtract",
"description": "Adds or subtracts days, weeks, months or years from one calendar date in the browser. Pass startIso as YYYY-MM-DD (exactly 10 chars), amount as a non-negative integer (0–10000), and optional unit and direction. startToday is UI-only — always pass startIso. Variant URLs are not a second machine Tool — pass unit and direction explicitly. Do not use this to measure the span between two dates (that is date_duration).",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"startIso",
"amount"
],
"properties": {
"unit": {
"enum": [
"days",
"weeks",
"months",
"years"
],
"type": "string",
"default": "days"
},
"amount": {
"type": "integer",
"maximum": 10000,
"minimum": 0
},
"startIso": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"maxLength": 10,
"minLength": 10
},
"direction": {
"enum": [
"add",
"subtract"
],
"type": "string",
"default": "add"
},
"startToday": {
"type": "boolean",
"default": true
}
},
"additionalProperties": false
}
}GET /api/tool/simpletoolstack.com/date_add_subtract