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
200
WebDateTimeEdit
posted

 Is there a predefined EditModeFormat for 24hour (military) time?  Where can I find a list of all the predefined formats?

 

Thanks,

MGA

  • 24497
    posted

    Hi MGA,

    If you are looking for one letter flag format, then I think "u" will use 24-hour format. However, I am not sure if it is good for military. Otherwise, you should build your own multi-flag explicit format. The "h" means 12-hour, "H" means 24-hour.

    For example:

    EditModeFormat="H:mm:ss"

    For information about all supported flags you should look at docs for DateTimeInfo class.