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 / Condition not working ...
Power Automate
Answered

Condition not working properly in date

(0) ShareShare
ReportReport
Posted on by 24

Hi Everyone,

 

When comparing the 01/07/2022 is greater than 10/01/2021 the answer is false. It is supposed to be true.

Why is the answer is false?  Here's the output below.

Boynogs123_1-1642661345522.png

 

Boynogs123_0-1642661315855.png

 

Thank you in advance!

 

Categories:
  • Verified answer
    rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @Boynogs123  it is two string you compare, and both are of the same length hence the false

     

    try  comparing

    ticks(formatDateTime(variables('varDateOne'),'M/d/yyy'))

    ticks(formatDateTime(variables('varDateTwo'),'M/d/yyy'))
    rubin_boer_2-1642706678788.png

     

    Result (true)

    rubin_boer_3-1642706728671.png

     

    changing varDdateOne

    rubin_boer_4-1642706789492.png

     

    Hope it helps

     

     

     

  • Boynogs123 Profile Picture
    24 on at

    Thank you @rubin_boer !

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 426

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 159

Last 30 days Overall leaderboard