cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate III
Advocate III

DatePicker empty value

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?

19 REPLIES 19
Anonymous
Not applicable

Thank you all for your responses.

Anonymous
Not applicable

Thank you all for your help with this issue! 

 

@Anonymous

Just clear the "Default Date" property of the date picker.

By doing this you will be able to save "empty value" to correpsoding date coulmn in sharepoint list. 

And if you explicitly choose any date in the Date picker then that date will will be saved to sharepoint list.

Also having the same issue with CDS, any resolutions?

Anonymous
Not applicable

Hi @JohnWeb for visibility purposes, I would create a new thread for your CDS issue so the community can review and assist. Thanks!

 

@Anonymous 

dtPicker.Text = string.Empty.  Should do the trick

Anonymous
Not applicable

 


@sdd wrote:

dtPicker.Text = string.Empty.  Should do the trick


Thats looks promising, will try that.


Thank you.

Anonymous
Not applicable

No doesn't work


@sdd wrote:

dtPicker.Text = string.Empty.  Should do the trick


 

Anonymous
Not applicable

Deleting the Format for the DateTimePicker or setting it Blank() worked for me, displays an empty DTP, instead of 2001.

 

Format -> If(Condition, Blank(), "dd/mm/yyyy")

Thanks. This method worked for me.

 

Select DateCardValue -> Advanced Tab -> Remove everything in "InputTextPlaceholder"

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (11,961)