Blazor | ComponentOne
Controls / DateTime Editors / DateTimePicker Overview / Date and Time Formatting
In This Topic
    Date and Time Formatting
    In This Topic

    DateTimePicker allows you to set the date format for displaying the date in a specific format. You can use Format property of the C1DateTimePicker class to set the standard date format for the DateTimePicker control. The following code showcases the use of Format property to set the "MM-dd-yyyy" date format to display date in the control.

    C#
    Copy Code
    <C1DateTimePicker Value="DateTime.Today" Format="MM-dd-yyyy"></C1DateTimePicker>