Power Apps Date Picker – Modern Controls


Purpose

A Power Apps date picker control enables the user to select a date from a calendar. Its purpose is to provide a convenient and error-free way for the user to input a date, reducing the likelihood of mistakes and improving the overall user experience.


Properties

AccessibleLabel
Screen readers will voice this text when a user selects the control
ContentLanguage
Describes the language used to the audience (e.g. “en-US”)
DisplayMode
Selects the mode: Edit, View or Disabled. In Edit mode the user can input values. In View mode the user can only see the values and in Disabled mode the control is greyed-out.

Options:
= DisplayMode.Disabled
= DisplayMode.Edit
= DisplayMode.View
Height
Distance from the top of the control to the bottom
OnChange
Actions that will be executed when the Value property of the Date Picker changes
Required
Highlights the control’s border when no value is entered.

Value
Initial value displayed in the control before the user interacts with it. Can also be used as an output property to get the current value of the Date Picker.
Visible
Determines whether to show or hide the control
Width
Distance from the left side of the control to the right side
X
Distance from the left edge of the screen to the left side of the control
Y
Distance from the top edge of the screen to the top of the control




How To Setup The Power Apps Date Picke Control

1. Select the date picker control in Power Apps studio. Set the Default property value to define the date picker’s initial state.

Today()



2. Click on the date picker control to open the calendar. Select a date from the calendar.



3. Get the date picker’s current value by using this code.

DatePickerCanvas1.Value





Questions?

If you have any questions or feedback about Power Apps Date Picker – Modern Controls please leave a message in the comments section below. You can post using your email address and are not required to create an account to join the discussion.

Subscribe
Notify of
guest

25 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Ez Otb
Ez Otb
5 months ago

I’ve looked for it, but can’t find it. Maybe it hasn’t rolled out yet? It is not part of the Modern Controls drop down list

Nels
Nels
5 months ago
Reply to  Ez Otb

Hi @Ez Otb, modern controls still in experimental mode.

To activate it, you need to go on your app settings, in “feature preview” menu I guess, then choose “Experimental” menu and found in this list something like “modern controls” – activate it and go back to your app.

Now, you should found it in the insert controls menu.

I woul take a screeshoot for you but my screen’s are saddly only in French :/

Matt Adams
Matt Adams
5 months ago

When collecting the value i can only see a random number stored on the new collection feature.

Last edited 5 months ago by Matt Adams
kzh
kzh
5 months ago

If I leave ‘Value’ blank and then select a date from the picker, it seems to disappear next time I navigate to the screen where it is placed.

A label which is ‘supposed’ to display the date also doesn’t pickup anything when I seem to change dates, weird.

Andrew Ng
Andrew Ng
5 months ago

anyone found a way to blank out the date?

Commander Data
Commander Data
3 months ago
Reply to  Andrew Ng

Reset if default is set to blank.

Lumiere
Lumiere
3 months ago
Reply to  Commander Data

there is no default settings to the modern date picker. Plz advise

Nels
Nels
5 months ago

Thanks Matthew.

Chasing a way to fine tune it to highlights days or to manage days available to pick or not, and so on…. not available today, hope this will coming in near future or a workaround may exist already ?

S amr
S amr
4 months ago

Hi,
I am now using this new date picker and I want to have the time plus to the date. Do u know what function should I use? The function Time (Value(Hour.Selected.Value), Value(Minute.Selected.Value), 0) does not work anymore

Dean
Dean
4 months ago

It’s a shame there is no way to set the display format to my region i.e. dd/mm/yyyy. I have tried entering my Content Language but that doesn’t change the format. Also no ability to change design colours. Will continue using Creator Kit for now

Jan Willem
Jan Willem
4 months ago

The new controls look much better, but I can’t get it in the Dutch notation dd-mm-yyyy.
Any idea? Or is this not possible at the moment?

Natalie Harzic
3 months ago

Thanks, Matthew. I was just struggling with this in the UK too. I hope it comes through soon because the new date picker is so much better than the old clunky one.
Thank you for all of your great info about Power Apps. I struggle with design and layout and your site has been so helpful in that regard.

Dean
Dean
3 months ago
Reply to  Natalie Harzic

As a temporary workaround I put a text label overlayed over the date picker control with the Text set to Text(DatePicker.Value,”dd/mm/yyyy”)

SpinsterNatalie
SpinsterNatalie
20 days ago
Reply to  Natalie Harzic

Cool!

CWes
CWes
4 months ago

I do hope they extend this to include time as well. The calendar is a huge improvement over the default one, but we still need time.

Sami
Sami
3 months ago

There is not any Default value property for this control.

natalie
natalie
3 months ago

When I try to use this code for the date picker to put in my value selected, it gives me an error. It is saying the word Value isn’t recognized. Anyone have this issue?

Meg
Meg
1 month ago

Is this control rolled out to production now or still available only as preview? Also, how does this handle timezone settings? My requirement is my users are all around the world, but their selected date and time should be converted to PST for my app’s function. Is this possible using this control?

Jason B
Jason B
1 month ago

Much nicer than the traditional DatePicker but… does it work in a gallery? Doesn’t seem to.

DublinUser
DublinUser
10 days ago

Hello;
Does anyone know how we would PATCH the modern control date value? The PATCH function does not seem to like “DatePIcker.Value”

Jamie
Jamie
8 days ago

It looks like Value is no longer an option for the modern date picker control. Any idea on where we can now set this control to read the initial default value?