cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dvalenzuela
Level: Powered On

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

Re: PowerApps datepicker set date after 15 days to today

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.

4 REPLIES 4
Super User
Super User

Re: PowerApps datepicker set date after 15 days to today

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.

K-A-R-L
Level 10

Re: PowerApps datepicker set date after 15 days to today

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 Team
Community Support Team

Re: PowerApps datepicker set date after 15 days to today

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

 

dvalenzuela
Level: Powered On

Re: PowerApps datepicker set date after 15 days to today

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
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 419 members 5,085 guests
Please welcome our newest community members: