Set the placeholder

28 Mar 20221 minute to read

The following example demonstrates how to set placeholder in the DateTimePicker control. Using placeholder you can display a short hint in the input element.

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