About this endpoint
What it does
Converts the provided datetime string from one IANA timezone to another and returns the original input plus the converted result.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| dt | String | Yes | Datetime string to convert. |
| from_tz | String | Yes | Source IANA timezone. |
| to_tz | String | Yes | Target IANA timezone. |
Response
Returns a JSON object with input, to_tz, result, and from_tz string fields. The input field echoes the provided datetime string, from_tz and to_tz identify the source and target timezones, and result contains the converted datetime string.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| input | String | No | Original datetime string provided in the request. |
| to_tz | String | No | Target IANA timezone. |
| result | String | No | Converted datetime string. |
| from_tz | String | No | Source IANA timezone. |