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 / Issue converting times...
Power Automate
Unanswered

Issue converting times and OData output is wrong?

(0) ShareShare
ReportReport
Posted on by 503

Hi all 

 

I have a condition that says if utcNow is less than 

"formatDateTime(variables('Time Check'), 'utcNow(), 21:00 tt')" than Update some rows: 
Capture3423.JPG
 
On updating the rows, I am trying to get a specific time into the selected row thus using the convert time. My issue is that the resulting time is 1 day ahead at 8am and I cant change it no matter what I try. 
 
Here is the input/output of the conversion and it looks fine: 
Capture34234.JPG
 
Here is how i set it up: 
Capture321.JPG

Update row:

Capture0089.JPG
 
But here is the output of the update row: 
Capture3231.JPG

As you can see, there are 2 differrent times. Is there any way I can change the OData out put?? I think this is what is causing my issue because that is the incorrect time. Im not sure if maybe I have to change my time conversion formula either?

 

I read a bit into this - https://docs.microsoft.com/en-us/powerapps/developer/data-platform/behavior-format-date-time-attribute#using-odata-apis-to-submit-user-local-date-and-time-values 

But im still unsure on how to resolve this and get the correct date / time I want? 

 

Thanks for the help everyone. 

 
Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Usernametwice23 

     

    Why you need to convert the time? Can't you directly use the formatDateTime(utcNow(), 'yyy-MM-dd 21:00:00') ?

  • Usernametwice Profile Picture
    503 on at

    Hi @abm 

     

    Because the same thing happens - 

    Capture4535.JPG

    I get the wrong date/time.  

     

    Is it possible to convert times in power automate? 

     

    Thanks for the help. 

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Usernametwice23 :

    You could try:

    formatDateTime('9/11/2021 8:00 AM')

     

    vbofengmsft_0-1636436923683.png

    The Result:

    vbofengmsft_1-1636436939571.png

    Best Regards,

    Bof

     

  • Usernametwice Profile Picture
    503 on at

    @v-bofeng-msft  Hi 

     

    I have tried the compose and cannot get the correct time output for update row  - 

    Capture454.JPG

     

    Update row:

    Capture345.JPG

    Could this be a date/time formatting issue or something else? 

     

    Thank you 

     

  • Usernametwice Profile Picture
    503 on at

    Also even if I try subtracting 11 hours, it does not work and automatically makes the time 9/11/2021 10:00 instead. (so it subtracts from 9pm) and then if I try adding 11 hours, it makes the time 10/11/2021 8:00.

     

    So it's like it cant just add the todays date (9pm) or something is stopping it in the update rows output and it gets converted again after converting it in power automate functions. 

     

    Any help is much appreciated. 

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 505

#2
Haque Profile Picture

Haque 446

#3
Valantis Profile Picture

Valantis 395

Last 30 days Overall leaderboard