{"uid":"cap_lRUD_RWoCXwKS_CnTk0h1","slug":"agent402-tools-date-format-parser-cf4cae12","name":"agent402.tools Date Format Parser","description":"Parse a datetime from any format (ISO 8601, Unix timestamp in seconds or milliseconds, RFC 2822, or natural date string) and return it in every common format: ISO 8601, Unix (seconds), Unix (ms), RFC 2822, date-only, time-only, day of week, and human-relative (e.g. '3 days ago'). ?datetime=1719100800.","url":"https://agent402.tools/api/date-format","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":["datetime"],"properties":{"datetime":{"type":"string","description":"Datetime to parse (ISO 8601, Unix timestamp, RFC 2822, or natural string)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["input","iso","unix","unixMs","rfc2822","date","time","dayOfWeek","relative"],"properties":{"iso":{"type":"string"},"date":{"type":"string"},"time":{"type":"string"},"unix":{"type":"integer"},"input":{"type":"string"},"unixMs":{"type":"integer"},"rfc2822":{"type":"string"},"relative":{"type":"string"},"dayOfWeek":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"iso":"2024-06-23T00:00:00.000Z","date":"2024-06-23","time":"00:00:00.000","unix":1719100800,"input":"1719100800","unixMs":1719100800000,"rfc2822":"Sun, 23 Jun 2024 00:00:00 GMT","relative":"1 year(s) ago","dayOfWeek":"Sunday"}},"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_VNruW84yg_zn3TQ8QKyhy","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":"Parses a datetime string from any common format and returns it expressed in every major datetime format simultaneously","exampleAgentPrompt":"Can you parse '2024-03-15T14:30:00Z' and give me that datetime in every format — Unix seconds, Unix milliseconds, RFC 2822, date-only, time-only, and what day of the week it falls on?","exampleUseCases":null,"resultDescription":"Returns the input datetime expressed in all major formats: ISO 8601, Unix timestamp in seconds, Unix timestamp in milliseconds, RFC 2822, date-only (YYYY-MM-DD), time-only, day of week, and a human-readable string.","failureModes":["Invalid or unrecognizable datetime string returns an error response","Missing required 'datetime' query parameter returns a 400 error","Ambiguous natural language strings may be misinterpreted","Extremely far future or past dates may be out of supported range"],"whenToPreferThis":"Use this endpoint when you need to convert a datetime from one format (ISO 8601, Unix timestamp in seconds or milliseconds, RFC 2822, or natural language) into all common datetime representations at once, rather than making multiple conversion calls. Ideal when an agent needs to normalize an arbitrary datetime string whose input format is unknown.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:15:39.057Z","isFirstParty":false}