{"uid":"cap_WJ3UCIcKYqUQ2YGWwRm0n","slug":"foundry-date-difference-calculator-5d22d5e3","name":"Foundry Date Difference Calculator","description":"Date difference: days, weeks, months and years between two dates. Input: '2026-01-01 2026-12-25'.","url":"https://minty-sprout.onrender.com/v1/date-difference?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":8000,"description":"Two YYYY-MM-DD dates (or one: from today)"}}},"responseSchema":{"type":"json","example":{"to":"2026-12-25","days":358,"from":"2026-01-01","weeks":51.14,"years":0.98,"months":11,"weekday_to":"Friday","weekday_from":"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_Tm3Aol3wz-NkcyLjVy5c5","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":"Computes the difference between two dates in days, weeks, months, and years, including weekday names for each date.","exampleAgentPrompt":"How many days, weeks, and months are there between January 1 2026 and December 25 2026?","exampleUseCases":[{"title":"Days until project deadline","prompt":"How many days and weeks are left between today, June 10 2025, and my project deadline on September 30 2025?"},{"title":"Age calculation in days","prompt":"How many days, months, and years have passed between someone's birthday on March 15 1990 and today, June 10 2025?"},{"title":"Event countdown planning","prompt":"Can you tell me exactly how many days, weeks, and months there are between now, 2025-06-10, and my wedding date on 2026-04-18?"}],"resultDescription":"A JSON object containing the two input dates (from/to), the difference expressed as days (integer), weeks (decimal), months (integer), and years (decimal), plus the weekday names for both the start and end dates.","failureModes":["Invalid or malformed date format (non-YYYY-MM-DD input) may return an error or unexpected result","Missing or empty input string may cause a processing error","Providing only one date relies on 'today' as the reference, which may be ambiguous in automated contexts","Very large date ranges may produce imprecise decimal values for weeks/years"],"whenToPreferThis":"Choose this endpoint when you need a structured breakdown of the time span between two specific dates across multiple units (days, weeks, months, years) simultaneously, especially when you also want weekday names for both dates. It is ideal for deadline tracking, event planning, and age calculation without needing to write custom date arithmetic logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:57:43.355Z","isFirstParty":false,"canonicalSlug":"foundry-date-difference-calculator-5d22d5e3"}