cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ersula82
Helper III
Helper III

Convert Time Zone

I'm getting items from a Sharepoint List and emailing those items in an HTML table. The problem is that one of those items is a date which is formatted in a different time zone. I need to take the date and re-format it into Central Time Zone so that it makes sense to the email recipient. I put in a convert time zone action but it's not allowing me to grab that converted time zone in the next action to update the html table. I've managed to convert the time zone for the subject of the email but not the contents therein. I've read a few blog posts but cannot get it to work. Please HELP! 

Capture.PNG

 

screenshot.png

 

 

 

 

 

1 REPLY 1
v-yamao-msft
Community Support
Community Support

Hi @ersula82,

 

Please try to use the ConvertTimeZone function in the action Create HTML table to format the date time instead of using the action ConvertTimeZone.

I have made the following flow for testing, the code I used is:

convertTimeZone(item()?['Date'],'China Standard Time','Central Standard Time')

Screenshot for your reference:

1.PNG

More details on Convert Time Zone, please check it at here:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#c... 

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,963)