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 / Hide Date in Date Pick...
Power Apps
Unanswered

Hide Date in Date Picker if Record Has No Value

(1) ShareShare
ReportReport
Posted on by 2
I have a modern date picker in a view form linked to members.orientationDate in a dataverse table. When a record in the members table has a date value for orienationDate, the value is displayed correctly without issue; however, when the record in the members table has no value for orientationDate, a random (seems to be the most orientationDate value from the most recently updated record) is displayed.
 
The original selectedDate value was Parent.Default, however, I've now changed it to If(IsBlank(ThisItem.orientationDate), Date(1971,1,1), Parent.Default). This still doesn't do what I want as a date is still displayed instead of nothing, but at least I can control which date is displayed.
 
Is there any way to either have no date displayed or the place holder text displayed when the date picker display mode is View?
Categories:
I have the same question (0)
  • Suggested answer
    Ravindra Jadhav Profile Picture
    342 Moderator on at
    Hii, 
    as you mention this error is becase of datatype of your column, In datavers you are using date and time column so you have to use Datevalue Function
     
     If(IsBlank(ThisItem.orientationDate), DateValue(1971,1,1), Parent.Default).
     
     
    Please Closed the Question, Mark it Solved 
     
    If my answer helped resolve your issue, please consider marking it as solved to assist others facing the same problem. Additionally, giving it a like would be greatly appreciated and motivates us to keep helping
     
    Thank You
    Ravindra Jadhav
     
  • Suggested answer
    Talha_Dar Profile Picture
    870 Super User 2024 Season 1 on at

    To display a placeholder or no date in "View" mode for the Date Picker:

    1. Use a Label Control: Place a label over the date picker with your desired placeholder text.
    2. Conditional Visibility:
      • Set the label's Visible property to IsBlank(DatePicker.SelectedDate).
      • Set the date picker's Visible property to !IsBlank(DatePicker.SelectedDate).

    This workaround simulates having no date or a placeholder displayed in "View" mode.

    If this helped solve your issue, please mark this as the solution so others can easily find it too. And if you found the content useful, feel free to give it a thumbs up!

  • Suggested answer
    CA1105 Profile Picture
    545 Super User 2025 Season 2 on at
    You can use IsBlank(ThisItem.orientationDate) to visible property of datepicker, also try to set default date to blank if there is no date. 

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