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 / Compare dates using th...
Power Automate
Unanswered

Compare dates using the MS flow for different entities

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

I'm trying to achieve a date field which is to be compared form other entity which having start and end dates fields 

Scenario: The table 1 having 2 Date fields: start date 13/10/2022 end date 13/11/2022

 

and there is Table 2 having Date field: Bill date: 10/11/2022 

 

So, I need a comparison that if Bill date is between start date and end date of Table 1 or not

The output needed Table 3 Field Is Bill in Time period as 'YES'

 

Please help me how can I achieve

Categories:
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @Ashwinreddy ,

     

    If you save the dates in variables, you can use the following expression to check if a dates lies between two dates:

    and(greater(variables('currentDate'),variables('startDate')),less(variables('currentDate'),variables('endDate')))
  • Ashwinreddy Profile Picture
    Microsoft Employee on at

    Hi Sudeep ,

    Thanks for the help, but I have the fields in the variables already and getting them in the 2022-02-15T18:30:00Z

    and I have given 3 variables in this as shown in the image below. here the Set Variable item should be checked if it is in the Set variable 2 and Set variable 3

     

    Shall I use the formula you given in Compose ?

    Ashwinreddy_0-1669266919483.png

     

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @Ashwinreddy ,

     

    That expression will return you a true or false.

    You can use that in a condition.

     

     

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 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard