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 function with date
Power Apps
Answered

If function with date

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello guys,

 

I have an issue with the IF-function in PowerApps. I wish to make a Text item visible when the current date is later than the displayed date. Uitersteuitschrijfdatum is a column in a list, which contains dates. I've tried different formula's, the latest being this one.  

 

If('DA - kl - datum'[@Uitersteuitschrijfdatum]<Today()-1, true, false)

 

Maybe it's better to derive the date from the text label in the app with the displayed date. This is what the displayed date ('S3_latest_subscribedate') looks like: 

MathijsM_0-1658836327161.png

Does anyone know how to tackle this and what formula to use? Would be very helpful!

 

Have a nice day and kind regards, Mathijs 

 

 

 

 

Categories:
I have the same question (0)
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Anonymous ,

     

    Try the below formula if it helps. 

     

    If(DateTimeValue('DA - kl - datum'[@Uitersteuitschrijfdatum],DateTimeFormat.LongDateTime) > DateTimeValue(Today()-1,DateTimeFormat.LongDateTime),true,false)

     

     

  • Verified answer
    AJ_vizMan Profile Picture
    on at

    HI @Anonymous 
    I tested the scenario at my end 
    1. Created a text control name txtdisplaydate which contain value of Today()-3
    2. Created another text control name txtCurrentdate with value of Today()

     

    Then i added a button and on 'Visible' property of button used below code :
    If(DateValue( txtcurrentdate.Text) > DateValue(txtdisplayeddate.Text),true, false)

    It works fine at my end.

     

    AJ_vizMan_0-1658839147821.png

     

    For your scenario, you can use any other control in place of button. 




     

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard