Ticket B3354
Visible to All Users

How can I show 24 Hour format for TimeEdit

created 19 years ago

I have the DisplayFormat and Editformat properties set so that it works with 24hr time format, but when I focus on the control it does not hold that format. I tried using the EditMask but the only predefined mask is the ShortTime which is HH:mm AM/PM format.
I want to have both the display and the edit format to be HH:mm.
Thank you for all your help.

Answers approved by DevExpress Support

created 19 years ago (modified 12 years ago)

You should set the EditMask property to "HH:mm". We've attached a sample project.
Thanks

    Comments (2)

      Is it possible to have second in 24 format? because in the suggested solution, i.e HH:mm the second is disappeared

      Andrew Ser (DevExpress Support) 12 years ago

        Hello,
        Extend this mask as follows: "HH:mm:ss".
        Please see the Mask Type: Date-time help article to learn more about DateTime masks.
        Feel free to contact us if you need further assistance.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.