{"uid":"cap_4qURa8hE4ZWW0blTfkXZH","slug":"centralcity-ai-date-difference-calculator-6e8f4cd6","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_ectofehwwkhwut7b?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_p2umxK2MLzv3WcOgdpiOK","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":"Calculates the time between two dates, returning the difference in days, weeks, calendar months, and years.","exampleAgentPrompt":"How many days, weeks, months, and years are between 2020-03-15 and 2024-11-01?","exampleUseCases":[{"title":"Project timeline duration check","prompt":"How many days and weeks are between the project start date 2024-01-10 and the deadline 2024-09-30?"},{"title":"Age calculation from birthdate","prompt":"How many years, months, and days old is someone born on 1990-07-04 as of today, 2025-07-10?"},{"title":"Contract expiry countdown","prompt":"How many weeks and months are left between today (2025-07-10) and a contract end date of 2026-03-01?"}],"resultDescription":"Returns the difference between two ISO-format dates broken down into total days, total weeks, and the calendar distance in years, months, and days — giving both precise and human-readable temporal measurements.","failureModes":["Invalid date format (not YYYY-MM-DD) returns an error","Dates outside the range year 1 to 9999 are rejected","Missing 'from' or 'to' field returns a validation error","'from' date after 'to' date may return a negative or error result"],"whenToPreferThis":"Use this endpoint when you need a precise, structured breakdown of the time between two specific calendar dates across multiple units (days, weeks, months, years) simultaneously, without needing to implement the calendar arithmetic yourself. Ideal for agents computing durations for scheduling, age calculation, contract timelines, or countdown logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T00:06:16.361Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-date-difference-calculator-d11b7ddd"}