There are two ways to solve this - via an action or an expression.
Using the action
Power Automate has a built-in operation called "Convert time zone".
Search for "convert time zone" and choose the "Convert time zone" operation.
[Asset 4557834]
The "Convert time zone" operation has a few required inputs:
[Asset 4557835]
Base time: The datetime you wish to convert.
Source time zone: The time zone that the datetime is currently in.
Destination time zone: The time zone you want to convert your date to.
See the "Notes" below for ways to find the current time zone.
Using the expression
Power Automate has an expression function for converting time zone.
[Asset 4557837]
convertTimeZone(timestamp: string, sourceTimeZone: string, destinationTimeZone: string, format?: string)
Required. A string that contains the time.
Converts a string timestamp passed in from a source time zone to a target time zone
You will need to pass in the following:
timestamp: The datetime you wish to convert.
sourceTimeZone: The time zone the datetime is currently in.
destinationTimeZone: The time zone you want to convert your date to.
format (optional): The format of the time zone you wish to convert your date to.
For example:
convertTimeZone(triggerBody()?['Date'],'UTC','Eastern Standard Time','HH:mm')
Here, timestamp is "triggerBody()?['Date']
", the source time zone is "UTC
", the destination time zone is "Eastern Standard Time
", and the format is "HH:mm
".
Please see the convertTimeZone documentation for more information about this expression function.