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 Apps
Answered

Date Picker

(0) ShareShare
ReportReport
Posted on by 14

Good afternoon,

I created an app using my list and it came with a date picker from which you can choose the date. However it won't update the record and I also can't seem to be able to reference it in a label for 2 reasons:

1) It uses scope

2) It produces a circular error

I just need to fix the date picker for the app to work and the only option I find online is to switch it to text.

Thank you in advance.

Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @pchristou 

     

    Please verify the update property of the Data Card which is tied to Date. It should be Datepicker.SelectedDate

    StalinPonnusamy_0-1628624409990.png

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @pchristou,

    Could you please share more details about your scenario, post a picture to show me how you configure your app?

    Do you want to display the date in a Label and save it to your list?

    1). If you want to display the date picker selected date within a Label, set the Text property of the Label as below:

    Text(DatePicker2.SelectedDate,"yyyy-mm-dd")

    vqiaqimsft_0-1628662647668.png

    2). To update the date, as @StalinPonnusamy said, if you have an edit form, you should attention how you set the data card Update property.

    if you have a single date picker and a save button, you should write the Patch() as below.

    Whether to switch it to text depends on the column type of your date column:

    a). if it is a Date and time type, you could save it using DatePicker2.SelectedDate

    Patch(
     YourList,
     Defaults(YourList),
     {
     DateColumn: DatePicker2.SelectedDate 
     }
     )​

    b). if it is a Single-line-of-text type, you could save it using Text(DatePicker2.SelectedDate,"yyyy-mm-dd") 

    Patch(
     YourList,
     Defaults(YourList),
     {
     DateColumn: Text(DatePicker2.SelectedDate,"yyyy-mm-dd")
     }
     )​​

    Hope it could help you at some degree

  • microconsulting Profile Picture
    18 on at

    @pchristou , @v-qiaqi-msft , @StalinPonnusamy ,

    ezgif.com-gif-maker (1).gif

     

    Check out custom date picker control for Power Apps.

    Please check this link for installation instructions.

    http://themicroconsulting.com/powerapps-custom-calendar-component-with-time-picker/

     

    Your feedback will be more than appreciated.

     

    Thanks 🙂

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
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard