cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RichardB
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?

20 REPLIES 20
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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,970)