cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Roselin
Helper I
Helper I

Date Comparision with Listrows Filter option

Hi Guys,

 

Can anyone help me on how to compare the datatable date with today's date and if it is greater than today's date it should send a mail if not no action required.

 

I tried in flow as  ---> column_name lt 'expression(today(utcnow())' but getting wrong output.

 

Regards,

Roselin

1 ACCEPTED SOLUTION

Accepted Solutions
jinivthakkar
Dual Super User
Dual Super User

@Roselin not sure which action you are using, so just refer below expression. Hope it gives you some direction 

 

you need to format the dates so both the values are in same format, please try this. 

 

less(formatDateTime(outputs('Get_item')?['body/Created'], 'dd/MM/yyyy'), formatDateTime(utcNow(), 'dd/MM/yyyy'))
 
I am trying to compare SharePoint item creation date with todays date
 
check this link as well
 

--------------------------------------------------------------------------------

If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

 

View solution in original post

3 REPLIES 3
jinivthakkar
Dual Super User
Dual Super User

@Roselin not sure which action you are using, so just refer below expression. Hope it gives you some direction 

 

you need to format the dates so both the values are in same format, please try this. 

 

less(formatDateTime(outputs('Get_item')?['body/Created'], 'dd/MM/yyyy'), formatDateTime(utcNow(), 'dd/MM/yyyy'))
 
I am trying to compare SharePoint item creation date with todays date
 
check this link as well
 

--------------------------------------------------------------------------------

If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

 
Roselin
Helper I
Helper I

yes.. You are correct. After giving the correct format also its working as expected and it is not comparing old year dates. Here i am using Listrows activity and am using Microsoft Dataverse Datatable. I will add the related snap shot also for reference.

Roselin_1-1641395811496.jpeg

 

Date Format:

Roselin_0-1641395767972.png

 

Hi, The date is comparing and providing expected output. I just changed the both date format to 'yyyy-mmm-dd'.

Its working fine.

Thanks a Lot

 

Regards,

Roselin

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,330)