{"uid":"cap_j2vTrpQbKJKJFDdJVgRmd","slug":"basic-utils-agent-datetime-difference-6c3f13c2","name":"Basic Utils Agent – Datetime Difference","description":"A versatile utility agent offering calculator, statistics, datetime, and unit conversion services.","url":"https://basic-utils-agent.up.railway.app/datetime/difference","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"default":null,"description":"The base date for the operation (required for add, subtract, difference, and day-of-week operations)"},"days":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"Number of days to add or subtract from the date (required for add and subtract operations)"},"date2":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"default":null,"description":"The second date for difference calculation (required for difference operation)"}}},"responseSchema":{"type":"json","example":{"difference":7}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sHs2Kq2T8O4P1u1DH0HnL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the number of days between two datetime values","exampleAgentPrompt":"How many days are there between January 15, 2024 and March 22, 2024?","exampleUseCases":[{"title":"Project deadline countdown","prompt":"How many days are left between today, June 10 2025, and our project deadline on August 31 2025?"},{"title":"Age or tenure calculation","prompt":"How many days has it been since the employee started on March 1 2023, compared to today June 10 2025?"},{"title":"Event gap planning","prompt":"I have two events: one on July 4 2025 and another on September 1 2025 — how many days apart are they?"}],"resultDescription":"Returns a JSON object with a single integer field 'difference' representing the number of days between the two provided datetime values (e.g. {\"difference\": 7}).","failureModes":["Missing date or date2 fields returns an error or null result","Malformed datetime strings (non-ISO 8601 format) cause parsing errors","Swapped date order may return a negative difference","Timezone inconsistencies between inputs may cause off-by-one errors"],"whenToPreferThis":"Choose this endpoint when you need a simple, fast computation of the number of days between two datetimes. It is ideal for countdown timers, tenure calculations, scheduling gaps, and any scenario requiring a numeric day-count difference. Prefer this over general-purpose LLM date math when you need a deterministic, reliable integer result without rounding ambiguity.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:38:59.251Z","isFirstParty":false}