TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Return one instant in many date formats, plus invalid and boundary dates

GEThttps://api.testingapis.com/api/edge-cases/datesSign in to see this endpoint's URL

Responses

200
Success.

Example

Request
curl -X GET "https://api.testingapis.com/api/edge-cases/dates" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "iso8601Utc": "2025-07-15T09:30:00Z",
  "iso8601Millis": "2025-07-15T09:30:00.123Z",
  "iso8601Micros": "2025-07-15T09:30:00.123456Z",
  "iso8601PositiveOffset": "2025-07-15T15:00:00+05:30",
  "iso8601NegativeOffset": "2025-07-15T05:30:00-04:00",
  "iso8601NoZone": "2025-07-15T09:30:00",
  "dateOnly": "2025-07-15",
  "timeOnly": "09:30:00",
  "weekDate": "2025-W29-2",
  "ordinalDate": "2025-196",
  "unixSeconds": 1752571800,
  "unixMilliseconds": 1752571800000,
  "unixSecondsAsString": "1752571800",
… (14 more lines)

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.