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?
Solved! Go to Solution.
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.
Hi @JohnWeb for visibility purposes, I would create a new thread for your CDS issue so the community can review and assist. Thanks!
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")
Check out new user group experience and if you are a leader please create your group
Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.