Time Format in EJ 1 ASP.NET MVC TimePicker

5 Oct 2015 / 1 minute to read

TimePicker widget provides you an option to change the TimeFormat property.

Steps to change Time Format of TimePicker widget

The following steps explains you to change the time format for the TimePicker.

  1. Add the following code to the corresponding view page to render the TimePicker.
  • cshtml
  • @*Add the following code example to the corresponding CSHTML page to render TimePicker widget with time format*@
    
    @Html.EJ().TimePicker("time").TimeFormat("hh:mm:ss tt")

    Execute the above code to render the following output.

    Time-Format_img1

    TimePicker with TimeFormat.