{"uid":"cap_y8TzgOeO3_dlwl6HlRX1Z","slug":"centralcity-ai-date-difference-calculator-090e1d41","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_5w6iixfqlfaewpct?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_RRwEcBECiYuJ6Zi1uYzoW","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 many days, weeks, and years/months/days are there between 2020-03-15 and 2024-11-28?","exampleUseCases":[{"title":"Project deadline countdown","prompt":"How many days and weeks are left between today, 2025-07-10, and my project deadline on 2025-12-31?"},{"title":"Age calculation in years and months","prompt":"Can you tell me exactly how many years, months, and days old someone born on 1990-04-22 is as of 2025-07-10?"},{"title":"Contract duration calculation","prompt":"A contract started on 2023-01-15 and ended on 2025-06-30 — how many total days, weeks, and calendar years and months did it run?"}],"resultDescription":"Returns the time elapsed between the two input dates expressed as: total number of days, total number of weeks, and a breakdown in calendar years, months, and remaining days.","failureModes":["Invalid date format (not YYYY-MM-DD) returns an error","Date out of range (year < 1 or > 9999) causes failure","Missing 'from' or 'to' field returns a validation error","Reversed date order (to before from) may return negative values or an error"],"whenToPreferThis":"Use this endpoint when you need a precise multi-unit breakdown of the time between two specific calendar dates — particularly when you need calendar-accurate years/months/days (not just raw seconds or milliseconds). Prefer this over manual arithmetic or general-purpose date libraries when you want a simple, pre-computed answer without handling edge cases like leap years or month-length variation yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T23:42:54.025Z","isFirstParty":false,"canonicalSlug":"centralcity-ai-date-difference-calculator-d11b7ddd"}