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 / Power Apps - Modern Da...
Power Apps
Answered

Power Apps - Modern Date Picker Reset Functionality Broken After Control Update

(3) ShareShare
ReportReport
Posted on by 2

The Modern Date Picker control was functioning correctly and responded to ResetForm() and Reset() actions as expected. However, after applying the latest control update offered through the Power Apps right-side Properties panel, the control no longer resets when the form is reset.

All other controls within the form reset as expected; however, the Modern Date Picker retains its previously selected date instead of returning to its default or blank value.

Steps to Reproduce:

  1. Open an app containing a Modern Date Picker control.

  2. Confirm that the control resets correctly using ResetForm() or Reset().

  3. In the right-side Properties panel, apply the available update for the Modern Date Picker control when prompted.

  4. Select a date and execute ResetForm() or Reset().

Expected Behavior:
The Date Picker should clear or return to its default value when ResetForm() or Reset() is executed, consistent with its behavior before the update.

Actual Behavior:
After the control update is applied, the Date Picker retains the previously selected value and does not respond to form reset actions.

Additional Information:

  • The issue was not present before applying the control update.

  • No changes were made to the app logic or reset code.

  • The only change was accepting the control update suggested in the Power Apps right-side Properties panel.

modern-controls-u...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • Suggested answer
    Kalathiya Profile Picture
    2,456 Super User 2026 Season 1 on at
     
    This look like a known issue with the Modern Date Picker control. Many users have reported similar across globally, where the control does not reset the selected date correctly.
     
    You can raise the support ticket:
     
    As a workaround, try replacing the Modern Date Picker with the Classic Date Picker control and use it.
     
    Similar issue raised by other users:
     
    ---------------------------------------------------------------------------
    Glad it helped 🙂
    If this fixed your issue,
    please click “Does this answer your question?” to mark it as verified so others can find the solution easily.
    A Like 👍 is always appreciated, and I’m around if you need more help @Kalathiya

     

  • Suggested answer
    Assisted by AI
    RaghavMishra Profile Picture
    261 on at

    Hi there! 👋

    Great question — you've actually run right into a documented behavior change introduced by the updated Modern Date Picker control. Here's what's happening and how to fix it.


    🔍 What Changed in the Updated Control

    The updated version of the Modern Date Picker introduced a new DefaultDate property (this didn't exist in the previous version). This is key — because reset behavior in Power Apps is directly tied to the Default property of a control.

    According to the Reset function – Microsoft Learn:

    "The Reset function resets a control to its Default property value. Any user changes are discarded."

    In the updated control, the equivalent of that "default value" is now the DefaultDate property. If DefaultDate is not explicitly set (or is set to a non-blank value), the control will not return to blank on reset — it will return to whatever DefaultDate resolves to.


    ✅ Fix: Set DefaultDate to Blank()

    To restore the previous "reset to blank" behavior, explicitly set the DefaultDate property on your Modern Date Picker:

    DefaultDate = Blank()

    This tells the control that its default state is empty, so when Reset() or ResetForm() fires, it returns to blank as expected.


    🛠️ If You're Inside an Edit Form

    If the Date Picker sits inside an Edit Form control, note that Reset() cannot directly target controls inside a Gallery or Edit Form from outside — you must use ResetForm(FormName) on the form itself. Per Reset function – Microsoft Learn:

    "You cannot reset controls that are within a Gallery or Edit form control from outside those controls."

    Make sure your reset action is calling ResetForm() on the parent form, not Reset() on the date picker directly, when it's inside a form.


    📋 Other Updated Control Changes to Be Aware Of

    The update also renamed several properties (e.g., FontColorColor, BorderRadiusRadiusTopLeft/TopRight/BottomLeft/BottomRight). If any of your formulas reference old property names, they may also need updating.

    Full list of changes: Date picker modern control – Recent updates | Microsoft Learn


    Found this helpful? Please mark ✅ "Does this answer your question?" so others searching for the same issue can find it quickly. A 👍 on "Was this reply helpful?" or a ♥ Like is also much appreciated!

    Raghav MishraLinkedIn | PowerAI Labs

  • CU11062303-0 Profile Picture
    2 on at
    Hi RaghavMishra,
     
    I tried what you suggested, setting DefaultDate = Blank(), and using Reset(DatePickerControlName) from a button. The control will still not set the prior date selection to blank.
  • Suggested answer
    MarkRahn Profile Picture
    1,418 Super User 2026 Season 1 on at
     
    I took a look at this in more detail.
     
    Are you able to roll back to a prior version of your App by using Restore? This might get you back to the version of the Modern Controls that worked. 
     
     
    I tried a bunch of things to try to get this working for you. After a lot of trial and error, I found a path that might work. It worked for me in my testing. I downgraded the control. Unfortunately, you would have to do this for all the DatePicker controls you clicked on "Update" for, but it does work.
     
    To do this, you will need to copy the code for the control, edit the YAML in Notepad or VS Code, and paste the code back in.
     
    Here is an example:
    1. click on the Control, right click and select "View code"
    2. Copy the code
    - DatePicker1:
        Control: ModernDatePicker@1.0.0
        Properties:
          DefaultDate: =If(IsBlankOrError(varDateValue),Blank(),varDateValue)
          EndDate: =Blank()
          OnChange: =Set(varDateValue,DatePicker1.SelectedDate);
          StartDate: =Date(1900,1,1)
          ValidationState: =ValidationState.Error
          X: =84
          Y: =222
     
     
    3. Make the following changes by changing the Control property and get rid of DefaultDate:
    - DatePicker1:
        Control: DatePicker
        Properties:
          EndDate: =Blank()
          OnChange: =Set(varDateValue,DatePicker1.SelectedDate);
          StartDate: =Date(1900,1,1)
          ValidationState: =ValidationState.Error
          X: =84
          Y: =222
     
    4. Delete the old "new" control from your form.
    5. Copy the YAML code you changed to the Clipboard.
    6. In your form, right click and select "Paste".
     
    You should now have the "old" ModernDatePicker back in your form. The function ""Reset()" will now work for this control. The YAML for the control should look something like this:
    - DatePicker9:
        Control: DatePicker@0.0.46
        Properties:
          OnChange: =Set(varDateValue,DatePicker9.SelectedDate);
          StartDate: =Date(1900,1,1)
          X: =160
          Y: =80
     
    In fact, if you copy that YAML you can paste it into your app to get the old control back.
     
    I hope this helps you get back from this frustrating situation.
     
    This community is supported by individuals freely devoting their time to answer questions and provide support. They do it to let you know you are not alone. This is a community.

    If someone has been able to answer your questions or solve your problem, please click Does this answer your question. This will help others who have the same question find a solution quickly via the forum search.

    If someone was able to provide you with more information that moved you closer to a solution, throw them a Like. It might make their day. 😊

    Thanks
    -Mark
     
     
  • Suggested answer
    MarkRahn Profile Picture
    1,418 Super User 2026 Season 1 on at
     
    This is fixed on Version 3.26061.13. Reset() should work now for the Modern Date Picker control. Thanks to @CarlosFigueira for pointing this out.
     
    It did when I opened the test app I made last week to troubleshoot this issue.
     
    This community is supported by individuals freely devoting their time to answer questions and provide support. They do it to let you know you are not alone. This is a community.

    If someone has been able to answer your questions or solve your problem, please click Does this answer your question. This will help others who have the same question find a solution quickly via the forum search.

    If someone was able to provide you with more information that moved you closer to a solution, throw them a Like. It might make their day. 😊

    Thanks
    -Mark

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard