cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Waxy
Frequent Visitor

Need help date comparison

Hello

 

I'm having a challenge comparing a SP column date  with today's date in order to filter items that match the query. End goal is to send a notification if the file's review date is coming up within the next 30 days. The SP library has a Revision date so I want a flow to check all files in the library and for those where the revision date is will be due in 30 days a notification is to be sent out. I'm taking the flow step by step so for now I just want to be able to filter.

 In SP library Revision Date = '5/16/2022' as shown below..

Waxy_1-1652736374141.png

 

Here is what I am testing and it keeps coming back empty, although I have one item in the library with a revision date of "5/16/2022".

 

Waxy_0-1652736188539.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ekarim2020
Super User
Super User

Hi @Waxy,

 

Please try formatting your date as  'yyyy-MM-dd' which is the format dates are stored in SharePoint. The utcNow() function can also accept a format parameter: 

Snag_21844ba.png


Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
ekarim2020
Super User
Super User

Hi @Waxy,

 

Please try formatting your date as  'yyyy-MM-dd' which is the format dates are stored in SharePoint. The utcNow() function can also accept a format parameter: 

Snag_21844ba.png


Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,907)