In this blog, we’ll look at how to turn off the past days when using the Power Apps date picker control. That is, if the user selects a past date from the Power Apps date picker, they will be restricted from selecting past days.

The following steps must be taken to work with this scenario:

  1. To the Power Apps screen, add a date picker control and a save button.
  2. Insert the following expression into the save button OnSelect property.

If(DatePicker2.SelectedDate<Today(), Notify(“You Cannot Choose Date Less Than Today”, Error))

Let’s test it by selecting a date earlier than the current date from the Power Apps date picker control. As we can see, it will restrict us by displaying an error message.

This is how to disable past dates from the power

For any Help or Queries Contact us on info@crmonce.com or +918096556344