{"uid":"cap_l894UE4wPQFJMrbPTl5pM","slug":"fastx402-date-arithmetic-60d86da7","name":"FastX402 Date Arithmetic","description":"146 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/date-add?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["date"],"properties":{"date":{"type":"string","description":"ISO 8601 date or date-time, e.g. 2024-01-31 or 2026-03-29T01:30:00Z"},"days":{"type":"string","description":"days to add (negative to subtract)"},"hours":{"type":"string","description":"hours to add (negative to subtract)"},"weeks":{"type":"string","description":"weeks to add (negative to subtract)"},"years":{"type":"string","description":"years to add (negative to subtract)"},"months":{"type":"string","description":"months to add (negative to subtract)"},"minutes":{"type":"string","description":"minutes to add (negative to subtract)"},"seconds":{"type":"string","description":"seconds to add (negative to subtract)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"date":{"type":"string"},"result":{"type":"string"},"weekday":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"date":"2024-01-31T00:00:00.000Z","result":"2024-02-29T00:00:00.000Z","weekday":"Thursday"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lAHNxphxb0-xM_RYId4py","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Adds or subtracts years, months, weeks, days, hours, minutes, and seconds to a date using calendar-correct rules, returning the ISO result and its weekday.","exampleAgentPrompt":"What date is exactly 3 months after January 31, 2024, and what day of the week does it fall on? Use calendar-correct rules.","exampleUseCases":[{"title":"Contract expiry date calculation","prompt":"Our contract starts on January 31, 2025 — what is the exact expiry date 18 months later, and what day of the week is it?"},{"title":"Scheduled reminder 90 days out","prompt":"I need to send a reminder exactly 90 days after March 15, 2025 — what date is that and what weekday?"},{"title":"Payroll date after adding hours","prompt":"If I start a shift at 2026-03-29T22:00:00Z and it lasts 10 hours, what datetime does it end and what day of the week is that?"}],"resultDescription":"A JSON object containing the original date in ISO 8601 format, the computed result date in ISO 8601 format, and the English name of the weekday of the result (e.g. Thursday).","failureModes":["Missing required 'date' query parameter returns an error","Malformed date string (not ISO 8601) returns a parse error","No duration parameters provided results in the same date returned","Negative values larger than the date range may return invalid results"],"whenToPreferThis":"Choose this endpoint when you need calendar-correct date arithmetic — especially for month-end edge cases like January 31 + 1 month correctly yielding February 28 or 29 — and also want the resulting weekday returned alongside the ISO date, all in a single cheap call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:40:42.746Z","isFirstParty":false,"canonicalSlug":"fastx402-date-arithmetic-60d86da7"}