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 Automate
Unanswered

output days error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

hi i created the schedule flow its show the output is okay last night, but i receive today email, which when i check the output for the day remains constant where it should be add 1 day after yesterday.

norazimah_0-1634864862233.png 
this is my flow, in the days column i use this formula : 
div(sub(ticks(utcNow()), ticks(item()?['Created'])), 864000000000)

norazimah_1-1634864904445.png 

norazimah_2-1634864931486.png

 

 

 

Categories:
I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    HI @Anonymous 

     

    Make sure both the time zones you are comparing are the same.

    For eg you are using UtcNow in your function, but is the other date also in utc timezone?

    Remember there is always a gap of few hours between utc and the time zone you would be in.

     

    For eg; The current utc time as I write this post is 3:15 am 

    and time in IST timezone now is 8:45 am.

     

    The point is, the day(or date) may have changed in a "particular timezone" but it is still the previous day in utc, because of the gap in hours of this "particular timezone" and utc.

     

  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    Hey @Anonymous 

     

    You will need to convert the timezone and then pass it to your "Select" action.

     

    To Convert the timezone you can use -

     

    CFernandes_1-1634877146306.png

    Formula --

     

    convertTimeZone(timestamp: string, sourceTimeZone: string, destinationTimeZone: string, format?: string)

     

    For details see - https://support.microsoft.com/en-us/topic/converting-time-zone-in-microsoft-power-automate-8bce2441-1859-4d76-2f51-985d9c96534d 

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    data source is same as my time zone, example created date 13/10/2021 . so i need to change the time zone again? 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    its show an error after i put in the "select" action.
    i change the formula : 

    div(sub(ticks(body('Convert_time_zone'))), ticks(item()?['Created'])), 864000000000)
    norazimah_0-1634885648143.pngnorazimah_1-1634885673652.png

     

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 Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 671

#3
Haque Profile Picture

Haque 551

Last 30 days Overall leaderboard