cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Odata Time Conversion in Power Automate

Hello Users,

I am using http Get request to get data from Talent entity. The entity of "Talent" has a field Named "Employement End Date". The problem I am facing right now is, I am getting different date time in my odata output, 
Please see the screenshot below.


Talent Front End Time:
Screenshot_16.png

 

The date I am getting from odata get request
EmploymentEndDate":"2020-02-10T01:00:00ZEmploymentEndDate":"2020-02-10T01:00:00Z

 

I am getting EmploymentEndDate":"2020-02-10T01:00:00Z which is different from talent Front end Date and Time.
There is a Timezone difference. If there is any way I can get Odata output without any timezone effect and will get the same time as present in Talent Front End. Or If there is any odata function which convert the time zone back to its original time as in Talent.

 

I am looking forward for a quick response.

Thanks

Best Regards 
Hunain Sami

 

2 REPLIES 2
Highlighted
Super User
Super User

Re: Odata Time Conversion in Power Automate

@HunainSami 

Hi there.  So, the date in your get request is actually the original format.  All dates are stored in UTC/GMT and then altered on the front end as you've illustrated.  The "Z" at the end of your backend data indicates "Zulu" or "UTC" timezone.

 

You can use either a step "Convert Timezone" or the function convertTimeZone() to change the presentation of the backend data to your local zone.  Here is a link to the Date Time functions.

 

Hope that helps, keep us posted.

-Ed-

 

If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Highlighted
New Member

Re: Odata Time Conversion in Power Automate

Hi @edgonzales Thanks for your response,

 

The challenge is that, I dont want to use Flow action to convert the timezone back to its origibal state, I want to get the timezone converted back to its original position within the Odata url call, so if there is any way that the timezone never effected in Odata call. If I use converttimezone action this process will get into loop for all employees and will take too long time to execute.

 

Regards

Hunain

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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
Users online (10,107)