Format timestamp

GET https://postman-echo.com/time/format?timestamp=2016-10-10&format=mm

A simple GET request to /time/format to convert the timestamp to any desired valid format.

This endpoint accepts timestamp, locale, format, and strict query parameters to construct the date time instance to check against.

Responses are provided in JSON format, with a format key to indicate the result. The response code is 200 for valid query parameters, and 400 otherwise.

{
  format: "formatted-timestamp"
}

Request Params

KeyDatatypeRequiredDescription
timestampstring
formatstring