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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Disable button between...
Power Apps
Answered

Disable button between two date/times

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

How can set DisplayMode for the button as below?

DateDiff(Text(Now(), "hh:mm"), ThisItem.FromDateTime, Minutes) < 15 -> hide button

DateDiff(Text(Now(), "hh:mm"), ThisItem.FromDateTime, Minutes) > 15 -> show button

DateDiff(Text(Now(), "hh:mm"), ThisItem.FromDateTime, Minutes)  > 30 -> hide button

 

Thanks.

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,721 Most Valuable Professional on at

    Hi @kinghnvn ,

    Try this on the Visible of the button

    With(
     {
     wMin:
     DateDiff(
     Now(), 
     ThisItem.FromDateTime, 
     Minutes
     )
     },
     wMin > 15 && wMin < 31
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 372 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 303 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 238 Super User 2026 Season 1

Last 30 days Overall leaderboard