{"uid":"cap_I8RMAdp9ovYP6ZUYuaVvh","slug":"centralcity-ai-date-difference-calculator-d11b7ddd","name":"centralcity.ai Date Difference Calculator","description":"The time between two dates: days, weeks, and calendar years, months and days.","url":"https://centralcity.ai/api/public/x402/off_4o7n7sgzdayxp2wv?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The second date, YYYY-MM-DD (years 1 to 9999)."},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The first date, YYYY-MM-DD (years 1 to 9999)."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IWu6A-zQYv2d2ATznDf4Y","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the time difference between two dates, returning the span in days, weeks, and calendar years/months/days.","exampleAgentPrompt":"How many days, weeks, and years/months/days are there between 2020-03-15 and 2024-11-01?","exampleUseCases":[{"title":"Project timeline duration check","prompt":"How long is the gap between our project kick-off on 2023-06-01 and the deadline on 2024-03-31 — give me days, weeks, and the breakdown in years, months, and days?"},{"title":"Age calculation in full detail","prompt":"Can you tell me exactly how many days, weeks, and years/months/days old I am if I was born on 1990-07-22 and today is 2025-05-14?"},{"title":"Contract or lease duration","prompt":"My lease runs from 2024-01-15 to 2026-07-15 — how many days, weeks, and calendar years, months, and days is that?"}],"resultDescription":"Returns the time difference between the two provided dates expressed as: total number of days, total number of weeks, and a broken-down calendar representation of years, months, and days.","failureModes":["Invalid date format (not YYYY-MM-DD) returns a validation error","Dates outside the range year 1–9999 are rejected","Missing required 'from' or 'to' field causes a request error","'from' date after 'to' date may return a negative or zero result depending on implementation"],"whenToPreferThis":"Choose this endpoint when you need a precise, multi-unit breakdown of the duration between two specific calendar dates — particularly when you need days, weeks, AND a human-readable years/months/days decomposition all in one call. It is better than a simple subtraction utility when the calendar-aware breakdown (accounting for varying month lengths and leap years) is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T23:42:54.026Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-date-difference-calculator-d11b7ddd"}