web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Adding DatePicker to a...
Power Apps
Answered

Adding DatePicker to a Custom Form

(0) ShareShare
ReportReport
Posted on by 10

I'm attempting to add a datepicker to a SharePoint list form and I'm not quite able to figure it out.   I have a regular text field that I'd like to replace with a calendar date picker.  Similar to what's described here:   https://powerusers.microsoft.com/t5/Building-Power-Apps/Adding-a-DatePicker-to-a-EditForm-on-a-Sharepoint-Normal-Text/td-p/793607

 

I added the datepicker and I get a red x when I change the DefaultDate field as mentioned in the forum post.

DeanEhnes_0-1668883283920.png

Please let me know what I'm doing wrong.

Categories:
  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @DeanEhnes ,

    The DefaultDate cannot be itself - it needs to be the field it is displaying, so assuming a field name of 'Delivery Date' and it is a Date field, it would be 

    ThisItem.'Delivery Date'

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • DeanEhnes Profile Picture
    10 on at

    Thanks Warren.  I tried that and it just displays 12/31/2001.  How can I add a date picker to the form as an input?

    DeanEhnes_0-1668898850071.png

    I'd like the user to just select the date from a calendar when they enter the field.  

     

     

     

     

  • WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @DeanEhnes ,

    Firstly that is the InputTextHolder and you can delete that if you do not want the user to see the required format for the input. If that is a Date Picker, what mode is the form in (I suspect View) as I cannot see the right side icon. Also what did you put as the DefaultDate and what is the name and type of field in SharePoint it is writing to?

  • DeanEhnes Profile Picture
    10 on at

    Thanks again for the help. The mode is edit.  I discovered the the type of field that it's writing to in SharePoint was set to single line of text.  I set that to Date & Time but it didn't make a difference.  I've attached a couple more screenshots to help with troubleshooting.

    DatePicker Properties:

    DeanEhnes_0-1668904456737.png

    Advanced Properties:

    DeanEhnes_1-1668904659353.png

    Any idea why the date picker isn't working?  When I click on the field in SharePoint nothing happens.  

    SharePoint form:

    DeanEhnes_2-1668904795740.png

     

     

  • Verified answer
    WarrenBelz Profile Picture
    156,526 Most Valuable Professional on at

    Hi @DeanEhnes ,

    If you have changed the field type in SharePoint since you added the Date Picker, delete that Data Card and then add a new one with the date field. Power Apps should take care of all the settings and it will work.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • DeanEhnes Profile Picture
    10 on at

    That worked.  Thanks Warren!  ...thanks for your patience and persistence in helping me with this issue!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard