cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kpiana
Level: Powered On

Condition: Custom Column Date is Less than " ? "

Hello,

 

I have a condition I set up that used to be: Modified - is less than - addDays(utcNow(),-180)

This was readying the modified column on sharepoint where it should say "6 days ago" for example.

I added a new custom column on sharepoint and called it Revised Date and I have a manually entered date for each item on the list in the format for example of 11/1/2019.

 

There for I change the Condition to be: Last Revised - is less than - ????

 

I am having trouble figuring out what function to replace it with that would make it so that if a item has been revised over 160 days ago it would consider it a YES.

Capture8.PNG

Let me know if you have any questions!

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Super User
Super User

Re: Condition: Custom Column Date is Less than " ? "

Hi @kpiana 

 

Try to format using formatDateTime(addDays(utcNow(),-180),'yyyy-MM-dd') on both ends of the IF condition.

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



View solution in original post

Community Support Team
Community Support Team

Re: Condition: Custom Column Date is Less than " ? "

 

Hi @kpiana ,

 

In fact, if it is used to compare time, you can ignore the date format, in other words, you can still use the expression you used before.

 

If you want the current date to be formatted in the same format as Last Revised, then you can also consider using the following expression:

addDays(utcNow(),-160,'yyyy-MM-dd')

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Condition: Custom Column Date is Less than " ? "

Hi @kpiana 

 

Try to format using formatDateTime(addDays(utcNow(),-180),'yyyy-MM-dd') on both ends of the IF condition.

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!



View solution in original post

Community Support Team
Community Support Team

Re: Condition: Custom Column Date is Less than " ? "

 

Hi @kpiana ,

 

In fact, if it is used to compare time, you can ignore the date format, in other words, you can still use the expression you used before.

 

If you want the current date to be formatted in the same format as Last Revised, then you can also consider using the following expression:

addDays(utcNow(),-160,'yyyy-MM-dd')

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (4,286)