Input for ASP.NET WebForms
Displaying an Empty Date Value
Task-Based Help > C1InputDateTasks > Displaying an Empty Date Value

When you run your project that includes a C1InputDate control, by default the current date automatically appears inside the control, regardless of how you have customized the controls (see Setting the Date Format Pattern and Date). In case, you want the C1InputDate control to display empty date value, instead of displaying the current date value, follow the steps:

Using the Designer

  1. From the toolbox, drag and drop the C1InputDate control on your web form. You will notice that C1InputDate control will display the current date.
  2. Select C1InputDate control from the Design view, and then go to the properties window.
  3. From the properties window, set the Placeholder property to {Empty Date} or any desired empty data value.

  4. Run the project. You will notice that C1InputDate control displays {Empty Date}

Note: The empty value which you have assigned to the control will appear when you first run the project. Once you select the control and toggle through the dates, the only way to have the empty value to reappear is to select another control on your page; you cannot "delete" the date within the control, you can only make the empty value text visible.