cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict available dates in Datepicker controls

Add MaxDate and MinDate properties to avoid selecting dates out of range. Examples:


Avoid selecting dates in the past:

Datepicker1.MinDate: Today()

 

Set maximum selectable date to 1 year in the future since today:

Datepicker1.MaxDate: DateAdd( Today(), 1, Years )

 

Attached image shows what it would look like MinDate property Smiley Happy

Status: Under Review

Updating status and adding @FilipK

Comments
HN
Level: Powered On

 There is no properties of min and max date in datepicker

PowerApps Staff
Status changed to: Under Review

Updating status and adding @FilipK

Anonymous
Not applicable

I have exactly opposite requirement. For the purpose of report generation, I want Max date not more than today and min date to be any date less than today.

Level: Powered On

@Anonymous I have the same requirements.

Level 8

This would be hugely useful. At this point, we can set conditional formatting if the date is "invalid" but preventing the user from saving an invalid date requires hiding/disabling the save/submit button. This works, but is sometimes overly complicated.

Level: Powered On

Same Requirement.

Level: Powered On

Probably an existing requirement. But selecting two dates in the datepicker for date ranges. And week number support for the picker would be great.

Br,
Andreas

Level: Powered On

Any update on this?

Level: Powered On

Hi,

Any update for this feature ?

 

 


@Underdog1987 wrote:

Add MaxDate and MinDate properties to avoid selecting dates out of range. Examples:


Avoid selecting dates in the past:

Datepicker1.MinDate: Today()

 

Set maximum selectable date to 1 year in the future since today:

Datepicker1.MaxDate: DateAdd( Today(), 1, Years )

 

Attached image shows what it would look like MinDate property Smiley Happy