I need to find a way to show empty value for a DateTimePicker which is in a time format. I searched for this question, then I found the examples for custom formatted DateTime Pickers (using this: DateTimePickerFormat.Custom
). But I need to use DateTimePickerFormat.Time
format in the code.
The detail for the component that I am using is like that:
DateTimePicker dtptime = new DateTimePicker();
dtptime.Format = DateTimePickerFormat.Time;
I used this code, but that does not work:
dtptime.CustomFormat = " ";
In this question Set DateTimePicker value to be null , I couldn't find an answer to Time formatted DateTimePicker.