I cannot find any way to clear a DateField
control programmatically after either a user has selected a date, or after I set myDateField.selectedDate
via code.
Documentation only states how to clear it if a user selects the date again.
But doing myDateField.selectedDate = myDateField.selectedDate
doesn't work
I have tried all the obvious, myDateField.selectedDate = null
, myDateField.text = ""
- but nothing seems to be doing the trick.
Does anyone have any ideas?