web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to write a convert...
Power Apps
Answered

How to write a convert to UTC formula in Powerapps?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

This works in Power Automate but doesn't look like it works in powerapps.

convertFromUtc(outputs('Wait_for_an_approval')?['body/completionDate'],'South africa standard time','dd/M/yyy H:mm tt').

 

How do I write this correctly in Powerapps?

 

Also, if I'm passing date data types from date pickers in power apps to flow (ask in powerapps) I noted that there is a special format that must be used in the text function to format the string namely "yyyy-mm-dd" in order for Sharepoint to accept it. 

 

Is there a specific formatting for Sharepoint as far as the time goes? Is "yyyy-mm-dd H:mm tt" fine? If not please tell me the correct time formatting.

 

Thank you very much.

 

Regards,

 

Daniel

 

 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Take a look at the documentation on TimeZoneOffset.  There is an example there for converting to UTC.

    Basically - DateAdd( Now(), TimeZoneOffset(), Minutes )

     

    When you set a date in SharePoint, you do not need to convert it to text, you can simply use the date type returned from the date formulas.

    When you pass a date to flow - you are correct that it does need to be in the proper format.

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Randy,

     

    Many thanks you helped me immeasurably! It's working.

     

    Regards,

     

    Daniel

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 638

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard