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
Community Champion
Community Champion

@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
Community Champion
Community Champion

@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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,501)