82trust / 100
Date Format
by Date format in Documents & files
x402 APIPassing, checked 1 h ago
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').
GET https://agent402.tools/api/date-format
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 194 ms typical, 337 ms slowest 5%
- Last check
- 1 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://agent402.tools/api/date-format?datetime=1719100800"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fdate-format
const res = await pay("https://agent402.tools/api/date-format?datetime=1719100800");
console.log(await res.json());Example input
{
"datetime": "1719100800"
}Example output
{
"date": "2024-06-23",
"dayOfWeek": "Sunday",
"input": "1719100800",
"iso": "2024-06-23T00:00:00.000Z",
"relative": "1 year(s) ago",
"rfc2822": "Sun, 23 Jun 2024 00:00:00 GMT",
"time": "00:00:00.000",
"unix": 1719100800,
"unixMs": 1719100800000
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 194 ms | $0.001 |
| 5 h ago | Passed | 402 | 190 ms | $0.001 |
| 9 h ago | Passed | 402 | 258 ms | $0.001 |
| 12 h ago | Passed | 402 | 185 ms | $0.001 |
| 17 h ago | Passed | 402 | 204 ms | $0.001 |
| 20 h ago | Passed | 402 | 807 ms | $0.001 |
| 23 h ago | Passed | 402 | 183 ms | $0.001 |
| 28 h ago | Passed | 402 | 337 ms | $0.001 |