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?

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,695)