Convert between timezones.
POST/dateandtime/switchtimezone
Converts a date and time from one timezone to another.
Request
Header Parameters
ipaas string
- application/json
Bodyrequired
- string
- number
inputTime objectrequired
The time that will be converted.
string
number
inputTimeZonestringrequired
The timezone of the input time.
Example:
Europe/Berlin
formatPatternstring
The format of the output time.
destinationTimeZonestringrequired
The timezone of the output time.
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
convertedTimestringrequired
timeZonestringrequired
{
"convertedTime": "string",
"timeZone": "string"
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}