DateTimePicker value empty

When using DateTimePicker, the value is empty when no time value is selected. How to get the date value though there is no time value ?

Use a DatePicker and a separate time field instead, if you want to be able to have undefined time