Convert Time Zone
Converts the time from the current time zone to the requested time
zone. If the time doesn’t contain a time zone, the value defined in Input Time Zone is
used instead.
This action is available in API version 62.0 and later.
Supported REST HTTP Methods
- URI
- /services/data/vXX.X/actions/standard/convertTimeZone
- Formats
- JSON, XML
- HTTP Methods
- POST
- Authentication
- Authorization: Bearer token
Inputs
| Input | Details |
|---|---|
| time |
|
| outputTimeZone |
|
| inputTimeZone |
|
Outputs
| Output | Details |
|---|---|
| dateTime |
|
Example
Sample request body:
1{
2 "inputs" : [{
3 "time" : "2025-02-24T14:30:15.123",
4 "outputTimeZone" : "UTC",
5 "inputTimeZone" : "America/Los_Angeles"
6 }]
7}Sample response body:
1{
2 "actionName" : "convertTimeZone",
3 "errors" : null,
4 "isSuccess" : true,
5 "outputValues" : {
6 "dateTime" : "2025-02-24T22:30:15.123Z"
7 }
8}