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 / Selecting Only Particu...
Power Apps
Unanswered

Selecting Only Particular Days with Date Picker

(0) ShareShare
ReportReport
Posted on by

Hello there, I'm working on a time slot booking app for which I need to provide employees to book only particular days i.e. Tuesday's and Thursday's in Date Picker. I can't figure out how to do it.

I have the same question (0)
  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Hi, how are the days made available for users? Are they preset or determined bu availability?

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @Anonymous ,

    Do you want the employees to be able to book Tuesday's and Thursday's in DatePicker, and disable other weekdays, right?

     

    If you want the employees to be able to book Tuesday's and Thursday's in DatePicker, and disable other weekdays, I afraid that there is no way to achieve your needs using the native DatePicker control in your canvas app.

     

    As an alternative solution, you could consider custom a DatePicker control in your app, then you could disable the weekdays within the custom DatePicker based on your needs.

     

    I have customized a DatePicker in my app, and disable other weekdays in it except the Tuesday and Thursday. the screenshot as below:

    2.JPG

     

    3.JPG

    Set the DisplayMode property of the Title2 inside the MonthDayGallery1 to following:

    If(
     Weekday(DateAdd(_firstDayInView, ThisItem.Value, Days)) = 3 || Weekday(DateAdd(_firstDayInView, ThisItem.Value, Days)) = 5,
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

     

    More details about customizing DatePicker control in PowerApps, please check the following article:

    https://docs.microsoft.com/en-us/archive/blogs/davidni/building-an-interactive-calendar-view-with-powerapps

     

    I have attached my sample custom DatePicker app below, please consider refer to it. When you want to reference the selected date value from the custom datepicker control, please reference value through the _dateSelected variable directly.

     

    Best regards,

  • RobGibson69 Profile Picture
    6 on at

    I'm wondering if, using similar logic to disable certain days of the week we could disable days that fall in the past.

     

     

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard