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

Notifications

Announcements

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,865 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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard