ComponentOne CalendarView for WinForms
CalendarView for WinForms / Using Controls / DateEdit Features / Date Formats
In This Topic
    Date Formats
    In This Topic

    The DateEdit control supports a number of date formats classified as follows:

    For information on custom format specifiers, see Custom Date and Time Format Strings. The DateEdit control supports majority of these format strings.

    The following image shows the DateEdit control displaying date in a custom format.

    The following code snippet shows how to display a date in a custom format in DateEdit.

    ' specify the format type as custom format
    C1DateEdit1.FormatType = C1.Win.C1Input.FormatTypeEnum.CustomFormat
    
    ' set the custom format specifier
    C1DateEdit1.CustomFormat = "MMM-dd-yyyy"
    
    // specify the format type as custom format
    c1DateEdit1.FormatType = C1.Win.C1Input.FormatTypeEnum.CustomFormat;
    
    // set the custom format specifier
    c1DateEdit1.CustomFormat = "MMM-dd-yyyy";
    
    See Also