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 / How to compare the exi...
Power Automate
Unanswered

How to compare the existing date with the 6 months date ?

(0) ShareShare
ReportReport
Posted on by 10

Hi All,

 

I am trying to create the reminder notification with the existing data in the SharePoint List.

 

I have a Column with the name 6 Months Review Date, how to compare it with the existing date?

I am struggling with the expressions and conditions, I have created the flow it works fine but the output is not accurately what I want?

 

Can anybody guide me?

Please see the flow below,

 

Hasham_Khalid_0-1713428019363.png

 

Categories:
  • Andrew_J Profile Picture
    1,962 Moderator on at

    @Hasham_Khalid 

     

    Can you give me a for instance i.e. an example.

     

    6 Months Review Dateexisting date
      

     

    I understand the compaison but without dates i.e. 18/04/2024 in a table form and some real world data I cannot help much further as I need to go away and model some information to make sure I am providing the correct advice. 

     

    Andrew

  • David_MA Profile Picture
    15,715 Super User 2026 Season 2 on at

    The dates on both sides of the condition need to be formatted using ISO8610 format, which is yyyy-MM-dd. If you do that, it should work.

  • Hasham_Khalid Profile Picture
    10 on at

    Hi,

     

    I used the same date format in both conditions for comparison.

     

    formatDateTime(item()?['OData__x0036_MonthlyReview_x002f_Date'], 'dd/MM/yyyy')

    is greater than 

    formatDateTime(addDays(utcNow(),184),'dd/MM/yyyy')

     

    Can these 2 conditions work?

     

     

  • Andrew_J Profile Picture
    1,962 Moderator on at

    @Hasham_Khalid 

     

    @David_MAhas said the dates need to be in ISO8610 format, which is yyyy-MM-dd.  Yours are not in that format.  Perhaps you can change and re run your flow.

     

    Andrew

  • Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at

    When comparing strings (and dates are strings just in a special format), they compared from left to right.
    Therefore your most significant character (here the millennium) must be on the left side.

    Your formatDateTime function creates a string with the day on the left side.

     

    Why are you even using formatDateTime?

  • David_MA Profile Picture
    15,715 Super User 2026 Season 2 on at

    For it to work, dates MUST be formatted with the ISO8601 format: yyyy-MM-dd

     

    ISO - ISO 8601 — Date and time format

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
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard