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
Answered

If condition Error

(0) ShareShare
ReportReport
Posted on by 2

Hi All,

 

I have an issue with date column of if statement

 

Compose 1 Date: 02/15/2024 which is current date

Compose 2 Date: 12/20/2023 which is previous year and Dec Month

 

if(compose 2 greater than compose 1) = False

Unfortunately the flow is telling True is that power automate bug?

 

if i tried the same year like 01/10/2024 as a current date and 02/15/2024 it showing the right branch as true

 

Please advise.

 

Thanks.

Categories:
I have the same question (0)
  • Gematria Profile Picture
    222 on at

    You might wanna post a picture of your flow actions 🙂

  • Verified answer
    Santhosh Balakrishnan Profile Picture
    169 on at

    @Priyanka03 

    In this scenario, format the two dates and create a condition based on them.

    formatDateTime(outputs('Compose_2_Date'), 'yyyy-MM-dd') 

    formatDateTime(outputs('Compose_1_Date'), 'yyyy-MM-dd')

     

    image (4).png

     

     

    If this solution proves helpful and resolves your issue, kindly consider marking it as accepted. Doing so will aid others who encounter similar challenges in the future.


    Regards,
    Santhosh Balakrishnan
    Apps4.Pro - Trusted Office365 T2T Migration partner. Migrate Exchange, SharePoint, Microsoft Teams, Stream, Yammer, Power Platform between tenants.
    Product Specialist - http://www.apps4.pro/

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 412

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard