Blazor | ComponentOne
Controls / DateTime Editors / TimeEditor Overview / Time Formatting
In This Topic
    Time Formatting
    In This Topic

    TimeEditor allows you to set the time format for displaying the time in a specific format. You can use Format property of the C1TimeEditor class to set the standard time format for the TimeEditor control. The following code showcases the use of Format property to set the "hh:mm" time format to display time in the control.

    C#
    Copy Code
    <C1TimeEditor Value="DateTime.Now" Format="hh:mm"></C1TimeEditor>