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 / Disable past dates sta...
Power Apps
Unanswered

Disable past dates start time selection- PowerApps and SharePoint Calendar

(0) ShareShare
ReportReport
Posted on by 7

Hello,

I am creating a calendar  to submit events(Edit form) onto SharePoint using PowerApps.

I am trying to disable the Start Date value for any dates in the past. Only allow user to select today and future dates.

 

I tried using:  

If( DateValue1.SelectedDate < Weekday(Today(), StartOfWeek.Monday), DisplayMode.Disabled, DisplayMode.Edit)

 

on display mode of the darevalue1 and no success. Anyone able to help?

Question.PNG
Categories:
  • eka24 Profile Picture
    20,925 on at

    To prevent users from selecting past dates:

    1. Set a Variable: Set(MyDate,Today())

    2. On the OnSelect of the DatePicker1:

    If(DatePicker1.SelectedDate>MyDate,Notify("You     Cannot Choose Date Less Than Today",NotificationType.Error))

    3. You can also put this formula on the Onsolect of Your SAVE Button:
    If(DatePicker1.SelectedDate>MyDate,Notify("You     Cannot Choose Date Less Than Today",NotificationType.Error))

     

    4. This will give an error message to the user as well as prevent them from saving

     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I think you meant:

    If(DatePicker1.SelectedDate<MyDate, Notify("You Cannot Choose Date Less Than Today", NotificationType.Error))

     

    Because you want to give an error if the date they pick is BEFORE (less/earlier than) today, right?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard