Search results

Set the Placeholder

The following code demonstrates how to set Placeholder in the DateTimePicker component.

Using Placeholder, you can display a short hint in the input element.

@using Syncfusion.EJ2.Blazor.Calendars

<EjsDateTimePicker Placeholder="Choose a datetime"></EjsDateTimePicker>

The output will be as follows.

DateTimePicker