cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LeventeH
Helper I
Helper I

Enable certain dates on weekend

Hello Everyone!

 

I came across with a problem, that I have a reserve application, where weekends cannot be reserved. I solved that part, but now I have certain weekend days, that I must be able to reserve, as they are work days. 

 

Is there any way, to unlock those certain dates, where you have to work n weekend?

 

Thank you for your responses in advance!

3 REPLIES 3
v-yujincui-msft
Community Support
Community Support

Hi@LeventeH,

 

Do you want to select those weekends that require work?

Maybe you could create a whitelist for them as shown below.

I have made a test for your reference.

vyujincuimsft_0-1639361964086.png

1.Add a DatePicker Control.

2.Add a Button Control and apply the following formula as:

 

If(
    DatePicker1.SelectedDate in 'Special Dates'.Date && (Weekday(
        DatePicker1.SelectedDate,
        Monday
    ) = 6 || Weekday(
        DatePicker1.SelectedDate,
        Monday
    ) = 7),
    Notify(
        "This is a special day(Working day)",
        NotificationType.Information
    ),
    If(
        Weekday(
            DatePicker1.SelectedDate,
            Monday
        ) = 6,
        Notify(
            "This is Saturday",
            Warning
        ),
        If(
            Weekday(
                DatePicker1.SelectedDate,
                Monday
            ) = 7,
            Notify(
                "This is Sunday",
                Warning
            ),
            Notify(
                "This is Working day",
                Information
            )
        )
    )
)

 

 Result Screenshots:

ResultGif.gif

 

Best Regards,

Charlie Choi

LeventeH
Helper I
Helper I

I have a custom calendar in use, where I change the displaymode, but i believe this could be something that I am looking for.

LeventeH
Helper I
Helper I

It is not 100% what I want I want that in DisplayMode the selection of that certain that is enabled.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,977)