Re: DatePicker Power Apps
Hi @Anonymous,
Have you solved your problem?
Do you want to force the user to choose the date only among a month?
Could you please tell me that how you configure this one month range?
I assume that you have 2 separate Date Pickers and you want the dates selected to be among a month, right?
I have made a simple test for you, please take a try as below.
Set the OnSelect property of the second date picker as below:
If(
Month(DatePicker_EndDate.SelectedDate) <> Month(DatePicker_StartDate.SelectedDate),
Notify(
"Please keep the selected date within a same month!",
Error
)
)
If you just have a single date picker and you want to achieve this, please try as below:
If(
Month(DatePicker.SelectedDate) =9,// Custom the month as you expect
Notify(
"Please keep the selected date within a month!",
Error
)
)
In addition, not sure where do you want to configure this function, if you really want to configure this in Portal, please check the reply from @OliverRodrigues.