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

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 Moderator 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 833

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 383

Last 30 days Overall leaderboard