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 / Diable Button based on...
Power Apps
Answered

Diable Button based on Date & Time

(0) ShareShare
ReportReport
Posted on by 187

Hello All - I have a use case where the users update the data between 1st and 15th of the month. I have the displa mode updated based on the ate. Since I am in India, the buttons gets disabled at 12 AM on 16th. My business runs till 6 AM on 16th or you can call 8 PM EST. Is there a way, I can disable the button on 16th of the month but at 8 PM EST or any other time that I specify. My current formula is as below

 

If(Day(Today())<=16,DisplayMode.Edit, DisplayMode.Disabled)
 
Any help on this front is much appreciated. 

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @sankhlay ,

    Try this

    If(
     DateTime(
     Year(Today()),
     Month(Today()),
     16,
     8,
     0,
     0,
     0
     ) > Now(),
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Verified answer
    sankhlay Profile Picture
    187 on at

    Thank you @WarrenBelz . This worked. Appreciate your prompt response. 

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
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard