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 / IF with a datePicker?
Power Apps
Answered

IF with a datePicker?

(0) ShareShare
ReportReport
Posted on by 69

Hi everyone

I'm trying to do a If with a datePicker

So I have a data source called Source and in this data source I have some date

So I'd like to show some values only if my date are equals

So I use: If(Source.Date=DatePicker.SelectedDate;....; ....) but it's not working, it's returning Argument not valid, I tried other things but it didn't work

(yes my date field is in the date Format)

 

Many thanks in advance for your help

 

 

Categories:
I have the same question (0)
  • leyburn19 Profile Picture
    2,157 on at

    Your IF should be seperated by a , not a ;

     

    If(Source.Date=DatePicker.SelectedDate,...., ....)  not  If(Source.Date=DatePicker.SelectedDate;....; ....)

  • freedumz Profile Picture
    69 on at

    No no

    As my powerapps is in French, I have to use ";" and not ","

    I know, it's weird but it's work with ;

  • Sofie_D Profile Picture
    260 on at

    Try using DateDiff function https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-dateadd-datediff

    If(DateDiff(Source.Date;DatePicker.SelectedDate)=0;...)

  • Verified answer
    freedumz Profile Picture
    69 on at

    I finally found the solution:

     

    If(Date=DatePicker.SelectedDate;...;...)

     

    I don't have to put Source.Date,  so I know that I have to give better name to my list columns because If I use another source with a date column it would become tricky

     

    But thanks for your help

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 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard