cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Krishna98
Helper V
Helper V

filtering get items based on date and time

Hi,

 

I'm Having a list as below,

q2.PNG

now i want to filter the items based on date and startofhour. suppose now current time is 2020-11-1 8:30 PM so i want to compare upto hour in the current time and need to get the data t1 and t4.

 

so i've tried something like below,

Notify eq '2020-11-1 8'

 

q1.PNG 

 

outputs is formatted date i.e. 'yyyy-MM-dd HH' i.e. '2020-11-1 8'

1 ACCEPTED SOLUTION

Accepted Solutions
tom_riha
Super User II
Super User II

You can't use 'eq' as the Notify column contains the whole date, it'll be never equal if you skip the minutes. When working with time, you'll have to use a range: Get items where:

Notify ge '2020-11-1 8:00' and Notify lt '2020-11-1 9:00'

that means

2020-11-1 8:00 <= Notify < 2020-11-1 9:00

 



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

View solution in original post

1 REPLY 1
tom_riha
Super User II
Super User II

You can't use 'eq' as the Notify column contains the whole date, it'll be never equal if you skip the minutes. When working with time, you'll have to use a range: Get items where:

Notify ge '2020-11-1 8:00' and Notify lt '2020-11-1 9:00'

that means

2020-11-1 8:00 <= Notify < 2020-11-1 9:00

 



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (99,580)