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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / DatePicker empty value
Power Apps
Unanswered

DatePicker empty value

(4) ShareShare
ReportReport
Posted on by

Have been playing some more with the DatePicker in an EditForm, but can't seem to work out how to ensure a blank date is displayed, rather than a date 'selected' by the system depending on the value of the StartYear.

For example, if the StartYear is 2017, then the DatePicker will display 1/1/2017 as the default, however this will then be written to the data source as part of the SubmitForm, with the result that incorrect date values will be recorded.

If you delete this date within the DatePicker, it is then 'replaced' with 31/12/2001

 

Does anyone have suggestions/workarounds on how to handle this.. was hoping the new version of the DatePicker would accommodate this?

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    on at
    Re: DatePicker empty value

    Hi @RichardB,

     

    To allow to clear the date (empty the DatePicker)

    Select datepicker control and sets its IsEditable property to true

    Now the user can delete the value using the keypad.

     

     

    Please let me know if options above works for you, happy to further help.

     

     

    Regards,

    Mona

  • RichardB Profile Picture
    on at
    Re: DatePicker empty value

    Hi Mona,

     

    Unfortunately, this doesn't answer my question, because if you refer back to my original post, you will see that I mentioned that deleteting thedate in the DatePicker appears to cause another date to appear (in my case 31/12/2001) , however the font weight is much lighter than if a 'real date' is selected.

    Furthermore, if there was a previous date and you then 'delete' it, the Update process doesn't update the backend database, in this case the CDS. Also it seems you can enter any value in the DatePicker ie 'XXXXX' and it doesn't generate an error. Do you need to configure other properties or build your own validation formulas for this.

    Am using the Windows Studio for editing and then testing on Edge browser

     

    Please could you investigate further

     

    regards

     

    Richard

     

  • Meneghino Profile Picture
    6,949 on at
    Re: DatePicker empty value

    Hi @RichardB

    Your issue is a well-known one and long standing problem of mine.  For some inscrutable reason, the PowerApps team forgot that null values exist.  They are apparently working on this, but I have seen no progress in months.

    This post also gives links to similar ones.  Please add your kudo to the ideas related to null/blank in the Ideas forum.

    Thanks.

    @v-micsh-msft might be interested in this and may provide an update on progress, if any.

     

  • Meneghino Profile Picture
    6,949 on at
    Re: DatePicker empty value

    PS You may also want to add your kudo to this:

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/Drop-down-control-has-no-blank-option/idi-p/20016

  • Community Power Platform Member Profile Picture
    on at
    Re: DatePicker empty value

    Any update on this one? Still cannot save blank date back to a Sharepoint list.

  • Meneghino Profile Picture
    6,949 on at
    Re: DatePicker empty value

    hi @Anonymous

    does this help?

    https://powerapps.microsoft.com/en-us/blog/new-feature-error-handling-and-writing-null-values-to-databases/

  • nssystem Profile Picture
    23 on at
    Re: DatePicker empty value

    its now 10/15/2018....  and we still cannot save a blank date !!  Not only will it not save blank dates, MS flow wont return date fields that have blank date values.   MS support responds like this is the first time they have ever heard about this problem, its disgusting and makes us look like fools to our customers. 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: DatePicker empty value

    Hi @RichardB,

    Please see my reply to Fless at https://powerusers.microsoft.com/t5/General-Discussion/Null-value-for-Date-Variable/m-p/167451#M56133.  If this works for you too, please mark the thread as solved. 

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: DatePicker empty value

    this can be achieved by doing the following steps
    Select DateCardValue -> Advanced Tab -> Remove everything in "InputTextPlaceholder" 🙂 

    Happy coding !! 

    Parak

  • Community Power Platform Member Profile Picture
    on at
    Re: DatePicker empty value

    Thank you all for your responses.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard