Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

output days error

(0) ShareShare
ReportReport
Posted on by

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

 

 

 

  • Community Power Platform Member Profile Picture
    on at
    Re: output days error

    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

     

  • Community Power Platform Member Profile Picture
    on at
    Re: output days error

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

  • CFernandes Profile Picture
    8,283 Most Valuable Professional on at
    Re: output days error

    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.

     

  • VJR Profile Picture
    7,635 on at
    Re: output days error

    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.

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow