About this endpoint
What it does
Formats an ISO datetime string using a Python strftime pattern. It takes the input datetime and format string as query parameters, then returns a JSON object containing the original input, the format used, and the formatted result.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| dt | String | Yes | ISO datetime string to format. |
| fmt | String | No | Python strftime pattern. Default: %Y-%m-%d %H:%M:%S. |
Response
Returns a JSON object with three string fields: input, format, and result. The response body reflects the input datetime and format used, along with the formatted output.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| input | String | No | The input datetime string. |
| format | String | No | The format pattern used. |
| result | String | No | The formatted datetime string. |