{"uid":"cap_IAziVCEnziO34NljrI3_Q","slug":"dev-reference-iso-8601-rfc-3339-date-time-validator-f8bf87d4","name":"Dev Reference: ISO 8601 / RFC 3339 Date-Time Validator","description":"Validate an ISO 8601 or RFC 3339 date, time, timestamp, duration or interval, and say which standard it satisfies.","url":"https://dev-reference.x402tookit.com/datetime-validate?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":["value"],"properties":{"value":{"type":"string","description":"For example 2026-10-11T14:30:00Z, 2026-W41-7, P3Y6M4DT12H30M5S"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"kind":{"type":["null","string"]},"input":{"type":["null","string"]},"valid":{"type":["boolean","null"]},"errors":{"type":["array","null"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"weekday":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"dayOfYear":{"type":["null","number"]},"isIso8601":{"type":["boolean","null"]},"isRfc3339":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"leapSecond":{"type":["boolean","null"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"utcInstant":{"type":["null","string"]},"isoWeekDate":{"type":["null","string"]},"epochSeconds":{"type":["null","number"]},"hasUtcOffset":{"type":["boolean","null"]},"intervalForm":{},"reducedPrecision":{"type":["boolean","null"]},"utcOffsetMinutes":{"type":["null","number"]},"durationSecondsIfFixed":{}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-d_rLcxjo0b_2UMMcXyDX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a date, time, timestamp, duration, or interval string against ISO 8601 and RFC 3339 standards, returning conformance flags, parsed metadata, and error details.","exampleAgentPrompt":"Is '2026-10-11T14:30:00Z' a valid RFC 3339 timestamp, and does it also satisfy ISO 8601? Tell me what kind of value it is and flag any issues.","exampleUseCases":[{"title":"API response timestamp compliance check","prompt":"The API response from our payment provider includes the timestamp '2026-03-15T08:45:00+05:30' — is that a valid RFC 3339 and ISO 8601 datetime, and what UTC instant does it correspond to?"},{"title":"Duration string validation for scheduling","prompt":"I'm building a scheduling system and want to make sure 'P3Y6M4DT12H30M5S' is a valid ISO 8601 duration. Can you validate it and tell me if there's anything wrong with it?"},{"title":"ISO week date format check","prompt":"Does the string '2026-W41-7' represent a valid ISO 8601 week date? I need to know which standard it satisfies and what weekday it lands on."}],"resultDescription":"Returns a structured object indicating whether the input is valid, which standards it satisfies (isIso8601, isRfc3339), the detected kind (date, time, timestamp, duration, interval), a human-readable verdict and summary, errors or reasons for failure, the equivalent UTC instant and epoch seconds (where applicable), weekday, day of year, UTC offset in minutes, whether it's a leap second or reduced-precision value, and interval form details.","failureModes":["Missing or empty 'value' query parameter returns an error","Ambiguous or non-standard formats may result in valid=false with reasons listed","Interval and duration forms may be partially supported with notChecked fields populated","Degraded mode may be indicated if some checks could not be performed","Malformed input that isn't parseable at all returns errors array with explanation"],"whenToPreferThis":"Choose this endpoint when you need strict standards-based validation of a datetime, duration, or interval string against ISO 8601 and/or RFC 3339, and want granular metadata like UTC instant, epoch seconds, weekday, leap-second detection, and offset parsing — rather than simple format matching or conversion. It is especially useful for API compliance checks, data pipeline validation, and debugging why a datetime string is being rejected by a standards-compliant parser.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:30:48.077Z","isFirstParty":false,"canonicalSlug":"dev-reference-iso-8601-rfc-3339-date-time-validator-f8bf87d4"}