Hello guys,
I encountered the following problem.
I have to disabled the displaymode of a button based on the selected Date of a DatePicker.
The Button should be enabled until its the last day of the last full week, For example: August 2022. The last day the button should be enabled is the 8/26 because its the last workday of the last full week of a month.
I came up to the following
If(
!(Month(Self.SelectedDate + 7) <> Month(Today()) || Month(Self.SelectedDate + 7) <> Month(
Date(
Dropdown_Jahr.Selected.Value,
Switch(
Dropdown_Monat.Selected.Value,
"Januar",
1,
"Februar",
2,
"März",
3,
"April",
4,
"Mai",
5,
"Juni",
6,
"Juli",
7,
"August",
8,
"September",
9,
"Oktober",
10,
"November",
11,
"Dezember",
12
),
1
)
)),
Edit,
Disabled
)
The Siwtch is because we have a Dropdown. The button shouldn't be disabled if the date is one month back
This is because in my example the 29/30/31 August have to be filled out together with semptember.
have you guys a way to fullfill my needs? At least if i can get the last workday of a full week?