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 Apps / How to get the records...
Power Apps
Unanswered

How to get the records between two date range in Power apps gallery

(0) ShareShare
ReportReport
Posted on by 20

Hello Everyone,

 

I want to filter the gallery data between two date range in Power apps. Data should be filter from start date and end date. 

 

I tried below code. 

raah0705_0-1699456700427.png

but it will not filter the data for today's record. It filter the data till yesterday's records. 

I have also tried to use the date converted into number format and then compare those date numbers.

raah0705_1-1699456778782.png

but this logic also would not work for me. 

Please help to resolve this date filter issue between two start date and end date range.

Thank you for your answer.

Categories:
I have the same question (0)
  • vivekravi Profile Picture
    241 on at

    Hello,

     

    Filter(
     SPL List,
     CreatedDate >= fromDate.SelectedDate && CreatedDate <= ToDatePicker.SelectedDate)

     

    this should have worked. So are you getting any error in your formula? 

  • raah0705 Profile Picture
    20 on at

    Hi @vivekravi ,

     

    Thanks for your reply.

    I am using the same formula, but this formula is not filtering the today's date data from the collection.

    It filter till yesterday date but not filtering today's date records.

     

    Thanks for your support.

  • vivekravi Profile Picture
    241 on at

    Weird. Maybe tryo to add the Today function in the filter

     

    Filter(
     SPL List,
     CreatedDate >= (fromDate.SelectedDate|| Today() )&& (CreatedDate <= ToDatePicker.SelectedDate|| Today()))
  • raah0705 Profile Picture
    20 on at

    Hi @vivekravi ,

     

    Yes, Its weird for me as well.  No, it is not working Today() function in filter formula.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,033

#2
Valantis Profile Picture

Valantis 632

#3
11manish Profile Picture

11manish 607

Last 30 days Overall leaderboard