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 / Flow Condition Not Wor...
Power Automate
Answered

Flow Condition Not Working

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am using a Flow condition.  This is it below.

@greater(formatDateTime(utcNow(), 'MM/dd/yyyy'), formatDateTime(addDays(item()?['ShowDate'], +30), 'MM/dd/yyyy'))

The Flow runs but it always comes back greater than.

This is the Time Now > ShowDate + 30.  

For example,

Today (12-11-2018) > 10-1-2018 + 30.  That is right.

Today > 12-20-2018 + 30.  That is not greater than but it comes back greater than.

Is there something wrong with the equation?

Thanks!

Categories:
  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    I did a test on my side. If you use formatDateTime(), what you said will happen.

    If you only compare dates, regardless of time, you could compare them directly without using formatDateTime(), and the results are correct.

    3.PNG5.PNG4.PNG

    Please take a try again.

     

    Best Regards,

    Barry

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks. That worked

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks.  That worked.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard