Range in EJ 1 ASP.NET MVC TimePicker

5 Oct 2015 / 1 minute to read

TimePicker widget provide options to set the Range (MinTime & MaxTime) for the time.

Steps to change MinTime & MaxTime of the TimePicker

The following steps explains you to change the Range of the TimePicker.

  1. Add the following code to the corresponding view page to render the TimePicker.
  • html
  • @*Add the following code example to the corresponding CSHTML page to render TimePicker widget with Min and Max time*@
    
    @Html.EJ().TimePicker("time").MinTime("10:00 AM").MaxTime("10:00 PM")

    Execute the above code to render the following output.

    Range_img1

    Range for TimePicker widget