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 Automate / convertToUtc() not wor...
Power Automate
Answered

convertToUtc() not working (throws error)

(0) ShareShare
ReportReport
Posted on by 24

Simple flow of only one element Compose where I have this:

 

Untitled1.png

 

and response is:

Capture1.PNG

 

No matter what I enter in convertToUtc it throws this error. 

I tried entering date/time manually as well, but error is the same. f.i.

convertToUtc('2019-10-10T00:00:00Z','FLE StandardTime')

 

convertTimeZone(utcNow(),'FLE Standard Time','UTC') does not throw error, but does not convert anything either.

convertFromUtc works as expected.

 

Can someone suggest how to convert from local time to UTC ? I want to pass UTC time to SharePoint.

Categories:
I have the same question (0)
  • Verified answer
    RobElliott Profile Picture
    10,416 Super User 2026 Season 1 on at

    Hi @mj2, why don't you try the Convert time zone action as in the image below.

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

    convertTimeZone2.jpg

  • mj2 Profile Picture
    24 on at

    Thanks for suggestion @RO . I did not know this component existed.

    Anyway, this did not convert anything. 

     

    Maybe I'm doing something wrong ?

    Take a look to input ant output

    Capture2.PNG

     

    Here is how I configured it:

    Capture1.PNG

     

    UPDATE:

    I changed input to '2019-10-19T00:00:00' and it worked. Basically removed 'Z' from input. 

     

    Thanks

     

     

  • Pstork1 Profile Picture
    69,024 Most Valuable Professional on at

    Make sure you remove the Z from the end of your timestamp that Z indicates that the timespan is already in UTC timezone.  That's why it won't convert to UTC.  Its already in UTC but you are trying to convert it from a specific timezone.

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard