cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ersula82
Level: Powered On

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
Community Support Team
Community Support Team

Re: Convert Time Zone

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (7,321)