{"uid":"cap_TZdTq0PxLyVgJ1_dsNy85","slug":"centralcity-ai-date-difference-calculator-728c8ad5","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_66qr4fonoc6jxzji?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_8VbMpjDmewN09LBWL6FKr","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, and calendar years/months/days.","exampleAgentPrompt":"How much time is between 2019-06-15 and 2024-11-30? Give me the difference in days, weeks, and years/months/days.","exampleUseCases":[{"title":"Project timeline elapsed time","prompt":"How many days and weeks have passed between when our project kicked off on 2023-01-09 and when it wrapped up on 2024-04-22?"},{"title":"Age calculation in full calendar units","prompt":"Calculate how old someone is if they were born on 1990-08-14 and today is 2025-05-20 — give me years, months, and days."},{"title":"Contract duration verification","prompt":"How long is a contract that runs from 2024-03-01 to 2026-02-28? I need the total days, weeks, and the breakdown in calendar years, months, and days."}],"resultDescription":"Returns the time difference between the two input dates expressed as: total days elapsed, total weeks, and a calendar breakdown of years, months, and remaining days.","failureModes":["Invalid date format (not YYYY-MM-DD) returns an error","Dates outside the year range 1–9999 are rejected","Swapped from/to dates may return a negative or unexpected result","Missing required fields return a validation error"],"whenToPreferThis":"Use this endpoint when you need a precise, structured date difference computation including both total counts (days, weeks) and human-readable calendar breakdowns (years, months, days). Prefer it over manual arithmetic or general-purpose code execution for lightweight, reliable calendar math without setting up a date library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T00:06:16.354Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-date-difference-calculator-d11b7ddd"}