web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / filtering get items ba...
Power Automate
Answered

filtering get items based on date and time

(0) ShareShare
ReportReport
Posted on by 204

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'

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Krishna98 ,

     

    You could paste the following expression to Filter Query to filter items:

    Notify ge '@{utcNow('yyyy-MM-ddT00:00:00Z')}' and Notify lt '@{addDays(utcNow(),1)}'

    Please take a try.

     

    Best Regards, 

  • Krishna98 Profile Picture
    204 on at

    Hi @v-bacao-msft 

     

    i tried the same, i have ran at 11. so it should only give records whose notify time is 11. but it has also give the record whose

    notify time is 9:00

    q3.PNG

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Krishna98 

     

    If you want to compare up to an hour then use addHour expression.

     

    addHours(utcNow(),1,'yyyy-MM-dd HH:mm:ss')
     
    Thanks
     
     
  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Krishna98 ,

     

    You could try this again:

    Notify ge '@{utcNow('yyyy-MM-ddT00:00:00Z')}' and Notify lt '@{addDays(utcNow(),1,'yyyy-MM-ddT00:00:00Z')}'

     

    Best Regards, 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 570

#2
Valantis Profile Picture

Valantis 405

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard