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

filter a sharepoint list on date

I'm struggling to get a filter working on a sharepoint list. I'd like the flow to return all events that happen in the next hour;

n1ckmuk_0-1623060141273.png

this filter doesn't seem to return any items;

 

EventDate gt '@{formatDateTime(utcNow(),'yyyy-MM-dd hh:mm:ss')}' and EventDate le '@{addhours(utcNow(),1,'yyyy-MM-dd hh:mm:ss')}'

 


the EventDate output looks like this if I use no filter;

 

"EventDate":"2021-06-09T10:00:00Z"

 

 

 

 



 

2 REPLIES 2
n1ckmuk
Helper I
Helper I

figured this out just after I posted. I've fixed the code above in case it helps anyone else. 

alrez
Community Support
Community Support

Hi,

 

Thanks for your follow up post! Remember to set the solution for this post to help future communities users with similar issues.

 

Regards,

 

Alex

 

-------

 

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

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,208)