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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / DatePicker.Value chang...
Power Apps
Unanswered

DatePicker.Value changed to DatePicker.SelectedDate -> loss of code

(0) ShareShare
ReportReport
Posted on by

Hello,

 

This morning I opened my favourite app, and I was welcomed with thousands of errors . Most of them are due to a change with my date pickers, I referenced their value with DatePickerX.Value everywhere, but it seems this is deprecated with modern controls and powerapps only accept DatePickerX.SelectedDate.

 

I did the change, but here is my issue :

I had "default value to display" code in my DatePickerX.Value function, but I cannot select Value function anymore.

Do you know how can I retrieve it ?

 

Thanks !

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @ProFe ,

     

    Please try and change studio version to the recommended one:

    vjefferni_0-1694419068398.png

     

    For the most recent version, you can reference the default date in DatePickerCanvas Control via the SelectedDate property. You can clear the Value property then change authoring version to the updated, then use the formula in SelectedDate property instead.

     

    Best regards,

  • ProFe Profile Picture
    on at

    Hi,

    Thank you for the help, but it doesn't work.

    I can load the last 3 authoring version properly, but I still cannot access to .Value property.

    When I load older versions, powerapps send me errors and I cannot open my app. See below.

    error1.pngerror2.png

  • v-jefferni Profile Picture
    on at

    Hi @ProFe ,

     

    DatePicker.Value property is deprecated as you found. Please use SelectedDate property instead. If you can see errors in your App due to Value property cannot be found, you can ignore them. After you close current edit session, they will disappear.

     

    Best regards,

  • Verified answer
    ProFe Profile Picture
    on at

    I managed to recover my functions in .Value property.

    1) Download .msapp file, extract it.

    2) Search in "controls" files (.json) for your control name.Value, and you can retrieve the formulas.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard