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 / Modern Date Picker bug...
Power Apps
Unanswered

Modern Date Picker bugged: Shows a wrong date in displaymode.view when SelectedDate returns blank

(3) ShareShare
ReportReport
Posted on by 35
I have several modern date pickers on a screen. Each date picker is supposed to display a corresponding date field from a record when controls are in view mode, and allow for updates when they are in edit mode. The record is a global variable set by selecting a gallery item on another screen.

Everything works as expected if the date fields in the data source / record variable are all populated with a date. However, when a record with any blank date field is loaded, the corresponding modern date picker does not show as blank when in view mode. Instead, it displays the last date that was in that field, either from the previous record or one which had been selected manually prior to the control being reset.

In edit mode, the date picker correctly shows as blank, awaiting input. The correct blank value is also returned in the fx bar when viewing the SelectedDate property.
 
 
Categories:
I have the same question (0)
  • Suggested answer
    venturemavenwill Profile Picture
    1,189 Super User 2025 Season 2 on at
    Yes, I have also noticed that modern date picker caches the selected date. What I usually do is explicitly define the DefaultDate property to display Blank() if the corresponding field is blank. 
     
    You can also try to reset all the date pickers when you select a record. 
  • DamonJay Profile Picture
    35 on at
    Thanks for your suggestion. However, I'm not seeing a DefaultDate property in the modern date picker.
     
    I've already tried an explicit condition in the SelectedDate property similar to below, to no effect. Have you taken a different approach that forces through the blank value in DisplayMode.View?
     
    If(IsBlank(variablename.datefield),Blank(),variablename.datefield)
    Resetting the control makes no difference to what is shown in DisplayMode.View if the underlying record field is blank. The modern date picker still holds on to the cached date value, even when the record variable is cleared and the control is repeatedly reset.
  • stephenbrownproduct Profile Picture
    13 on at
    Confirming this is still an issue in the modern date picker control. Null/empty inputs is Testing 101. It's scary how many bugs are in "GA" features.
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    I thought that you are expected to set a default date when using the control because what is considered an empty date 
  • DamonJay Profile Picture
    35 on at
    @ronaldwalcott It's a perfectly common use case for any non-required field to be able to display as blank when viewing an existing record from a data table.

    For example, let's say we have a screen to display the start date and end date of a task. The user loads a record for a task that has started but has not yet ended, so the end date field in our data set is empty. As such, the end date control in our app should be blank. 
     
    There is no default date applicable and the control simply will not default to blank, nor reset to a blank/empty state through normal methods. Instead, the user would see the end date from the last record displayed which did have a stored value (or else the last date manually selected using that date picker control) instead of the blank field.
     
    It's simply not fit for purpose.

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard