Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1040
DateTimeEditor
posted

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?

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    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.

Children
No Data