# Customizing the C1DateEdit Control

This topic demonstrates how to customize the drop-down of a C1DateEdit control.

## Content



This topic demonstrates how to customize the drop-down of a [C1DateEdit](/componentone/api/win/online-input/dotnet-framework-api/C1.Win.C1Input.4.8/C1.Win.C1Input.C1DateEdit.html) control. By default, the drop-down appears like the image below:

![datepicker](https://cdn.mescius.io/document-site-files/images/6c2f30e9-4d3a-4f86-b649-ecbef777b3a3/images/datepicker.png)![](https://cdn.mescius.io/document-site-files/images/6c2f30e9-4d3a-4f86-b649-ecbef777b3a3/images/1pixel.png)

### Button Visibility

You can hide the **Clear** and **Today** buttons by performing the following tasks:

1.  Select the **C1DateEdit** control.
2.  In the Properties window, expand the **Calendar** property node.
3.  Set the [ShowClearButton](/componentone/api/win/online-input/dotnet-framework-api/C1.Win.C1Input.4.8/C1.Win.C1Input.DateEditMonthCalendar.ShowClearButton.html) and [ShowTodayButton](/componentone/api/win/online-input/dotnet-framework-api/C1.Win.C1Input.4.8/C1.Win.C1Input.DateEditMonthCalendar.ShowTodayButton.html) properties to **False**.

### Format Display

The [FormatType](/componentone/api/win/online-input/dotnet-framework-api/C1.Win.C1Input.4.8/C1.Win.C1Input.C1DateEdit.FormatType.html) property allows you to edit the date displayed in the box.

By default, the date and time are displayed in the box. To only show the date, perform the following task:

1.  Select the **C1DateEdit** control.
2.  In the Properties window, set the FormatType property to **ShortDate**.

## See Also

[Displaying Clicked C1DropDown Buttons in a Text Box](/componentone/docs/win/online-input/inputforwinformstask/displayingclickedc1d)