{"uid":"cap_P6IcA52spkNZSaE3QaQyz","slug":"saylor-innovations-date-difference-calculator-669daa92","name":"Saylor Innovations Date Difference Calculator","description":"Days between two dates calculator - total days, weeks, years-months-days and business days between any two dates","url":"https://saylorinnovations.com/api/calc/date-diff?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["from","to"],"properties":{"to":{"type":"string","description":"End date YYYY-MM-DD"},"from":{"type":"string","description":"Start date YYYY-MM-DD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["days","business_days"],"properties":{"to":{"type":["string","null"],"description":"End of the range"},"days":{"type":"number","description":"Number of days"},"from":{"type":["string","null"],"description":"Start of the range"},"note":{"type":["string","null"],"description":"Caveat or context for reading the result"},"weeks":{"type":"number"},"checked_at":{"type":["string","null"],"description":"Time the check was run (UTC)"},"to_weekday":{"type":"string","description":"To weekday"},"from_weekday":{"type":"string","description":"From weekday"},"business_days":{"type":"number","description":"Number of business days"},"remainder_days":{"type":"number","description":"Remainder days"},"years_months_days":{"type":"object","description":"Years months days"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_duM4dyglQebzUl6Pfj1pI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the total days, weeks, years-months-days breakdown, and business days between two given dates","exampleAgentPrompt":"How many days and business days are there between January 15, 2025 and March 28, 2025?","exampleUseCases":[{"title":"Project deadline countdown","prompt":"How many total days and business days are left between today, July 10, 2025, and our project deadline on September 1, 2025?"},{"title":"Invoice payment terms calculation","prompt":"A contract started on March 1, 2025 and is due June 30, 2025 — how many business days is that, and what's the breakdown in years, months, and days?"},{"title":"Age or anniversary duration lookup","prompt":"How many days, weeks, and years-months-days is it from my company's founding date of April 12, 2018 to today, July 10, 2025?"}],"resultDescription":"Returns a JSON object with: total days between the two dates, number of business days (excluding weekends), total complete weeks, remainder days after full weeks, a years-months-days breakdown object, the weekday name for each input date, the input from/to date strings, a checked_at UTC timestamp, and an optional note providing context or caveats about the result.","failureModes":["Missing required 'from' or 'to' query parameters — likely returns 400 or error response","Invalid date format (not YYYY-MM-DD) — likely returns 400 or parsing error","End date before start date — may return negative values or an error","Network timeout or service unavailability — returns HTTP 5xx","Payment not provided or insufficient — returns HTTP 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a quick, accurate computation of the span between two dates expressed in multiple formats simultaneously — total days, business days, weeks, and a years-months-days breakdown — all in one call. It's ideal for project planning, contract duration checks, scheduling, invoicing, and any scenario where both calendar days and working days matter. Prefer it over a generic calendar library when you want a simple HTTP call returning pre-computed, ready-to-display date-span data including weekday labels.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:41:34.817Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-date-difference-calculator-669daa92"}