I am trying to convert a time (response from an approval) from UTC to the time in Perth Australia.
Here is my code:
convertTimeZone(outputs('Start_and_wait_for_an_approval_-_Approver_1')?['body/completionDate'], 'UTC', '(UTC+08:00) Perth', 'dd/MM/yyyy hh:mm')
I've tried:
All to no avail. Does anyone know what the values should be?
Hi @AngusWalker,
The following code should do the trick:
convertTimeZone(
outputs('Start_and_wait_for_an_approval_-_Approver_1')?['body/completionDate'],
'UTC',
'W. Australia Standard Time',
'dd/MM/yyyy hh:mm'
)
If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.
Thanks!
Hi @AngusWalker ,
Please try
Text(DateAdd( outputs('Start_and_wait_for_an_approval_-_Approver_1')?['body/completionDate'], −TimeZoneOffset( outputs('Start_and_wait_for_an_approval_-_Approver_1')?['body/completionDate']), TimeUnit.Minutes ),'dd/MM/yyyy hh:mm')
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,079
Most Valuable Professional