5 Oct 20151 minute to read
You can set time interval between two adjacent time values in the time popup manually using the “Interval” property. By default the value of the “Interval” property is 30 minutes. Setting this value as 60 is considered as 1 hour. Sometimes you need to update for every hour work log reports. In that case to select time from time popup window with 1 hour interval to update the every 1 hour report you can use Interval option by setting time interval value as “60 minutes”.
Add the following code in your CSHTML page to render DateTimePicker widget.
@*Add the following code example to the corresponding CSHTML page to render DateTimePicker widget with customized interval*@ @Html.EJ().DateTimePicker("DateTime").Interval(60).Width("175px")
The following screenshot displays the output for the above code.