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

PowerApps datepicker set date after 15 days to today

Hi all,

I hope you can help me, I have an app with powerapps with a datepicker.

I need to configure the control so that when the date is selected, it is not possible to select 15 days in the future. For example, if today is 4 July, when I select a date I should start from July 19 and not allow me to select a date before 15 days from today.

thanks for your support

 

Regards,

DV

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Set the Default of the DatePicker to Today()+14

 

Set the OnChange property to 

If(DatePicker1.SelectedDate <= Today()+14, Reset(DatePicker1))

You may want to show some text for a few seconds (using a timer) so the user is aware their entry was invalid.

View solution in original post

4 REPLIES 4
Super User
Super User

Set the Default of the DatePicker to Today()+14

 

Set the OnChange property to 

If(DatePicker1.SelectedDate <= Today()+14, Reset(DatePicker1))

You may want to show some text for a few seconds (using a timer) so the user is aware their entry was invalid.

View solution in original post

Solution Specialist
Solution Specialist

Hi @dvalenzuela , 

Did you test with @PaulD1 's suggestion? 

You can also try using the New Calendar Screen instead of the Date Picker Control, then you can have more customization like disabling the dates 15 days after the selected date.

Thanks,
K-A-R-L


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support
Community Support

Hi @dvalenzuela 

 

You can test with @PaulD1 's suggestion.

And does the control has the issue recently or it always has this?

Could you please try to clear cache and cookies or change other browsers to test?

Could you please try to close Improved App Rendering(final validation) in Advanced setting Panel and then restart your App to test?

advanced.PNG

 

Best Regards.

Yumia

 

Hi @PaulD1 


This work for me

If(DatePicker1.SelectedDate <= Today()+14, Reset(DatePicker1))

although it allows me to select a date before 14 days, it does not pass that value to the text box. Ideally, do not even show me the future 14 days in the date selector.

 

thanks

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (9,613)