web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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:
I have the same question (0)
  • 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
    12,966 Super User 2025 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,436 Super User 2025 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
    12,966 Super User 2025 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard