Search results

Set the placeholder

The following example demonstrates how to set placeholder in the DateTimePicker control.

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

razor
@Html.EJS().DateTimePicker("datetimepicker").Placeholder("Enter datetime").Render()