cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Use FormatDateTime and convertTimeZone function in the same expression

Hi, 

 

Attached is the flow that I created. The flow is emailing me the planner tasks with Creation and Completion Date.

Workflow.jpg

 

The flow is working perfectly fine but it is not giving me the output in local time zone for Outage StartDate and Outage Completion Date columns.

I would like to keep the date format the way it is but need to convert it into Central Time Zone (US & Canada) which is my local time zone.

 

Is there a way I could club use convertTimeZone function with FormatDateTime function to achieve the output I need?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Use FormatDateTime and convertTimeZone function in the same expression

Hi @PowerUserVir ,

 

You could take a try with expression as below:

convertTimeZone('2018-01-01T08:00:00.0000000Z', 'UTC', 'Pacific Standard Time')

 

You could learn more of the workflow definition language with document below:

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

 

Best Regards,

Alice

 

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

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Use FormatDateTime and convertTimeZone function in the same expression

Hi @PowerUserVir ,

 

You could take a try with expression as below:

convertTimeZone('2018-01-01T08:00:00.0000000Z', 'UTC', 'Pacific Standard Time')

 

You could learn more of the workflow definition language with document below:

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

 

Best Regards,

Alice

 

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

View solution in original post

Highlighted
Frequent Visitor

Re: Use FormatDateTime and convertTimeZone function in the same expression

Thanks @v-alzhan-msft 

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (8,875)