I use datetimeeditor control.
First. set the property FormatString = "yyyy-MM-dd HH:mm"
Second. NullText = "____-__-__ __:__"
PromptChar = "_"
But like the below image,I When I first runtime only display the time .The time does not appear after I selecting the calendar.
Display the time when the focus out.
Why is this?
Set the MaskInput property to "yyyy-mm-dd hh:mm". The FormatString property controls how the date is formatted for display, i.e., when it does not have focus, and the MaskInput property controls the masking functionality, which covers not only display but which characters are considered to be valid for input. The month section, for example, knows not to accept a number greater than 12 and thus prohibits entering that value.