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 / Filter on Date Picker ...
Power Apps
Answered

Filter on Date Picker not working

(0) ShareShare
ReportReport
Posted on by 134

I'm connecting to a table from a SQL Server database.  It has a few fields, with one of them being a date (WorkedDate, date datatype).

 

I'm loading that data into a gallery to display it, so I attempted a filter:

Filter(
'[AUDIT].[FBCountSheet]',
WorkedDate = DatePicker1.SelectedDate
)

 

This does not seem to work at all.  My best guess was that it was returning a datetime from the date picker, so I tried doing a DATE(YEAR(),MONTH(),DAY()) wrapper on the Selected Date value to no avail. I have tested the filter on other columns (location, which is an int), but date is the only one that's not working.

 

Bonus question- is there really no way to type in your date on the date picker?

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @dungar 

    If the date exists in the SQL database but you are not finding any matches it is likely because the date formats difference between SQL and PowerApps.  For example lets say your dates have the following formats.

     

    SQL: yyyy-mm-dd hh:mm:ss
    PowerApps: m/d/yyyy

     

    The solution would be to format the PowerApps date similar to the SQL format.  By the way, many times a date within SQL is stored as plain-text

     

    Filter(
     '[AUDIT].[FBCountSheet]',
     WorkedDate = Text(DatePicker1.SelectedDate, "yyyy-mm-dd hh:mm:ss")
    )

     

    Note: you might have to take a peek at the database tables in SQL to confirm the actual format.

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard