max
Gets or sets the maximum value of the TimePicker.
Parameters
value Date|String
The maximum time value to set for a TimePicker, expressed as a Date object or as a string.
Returns
Date
The maximum time value of a TimePicker.
Example - get the max value of the TimePicker
<input id="timepicker" />
<script>
$("#timepicker").kendoTimePicker();
var timepicker = $("#timepicker").data("kendoTimePicker");
var max = timepicker.max();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(max);
</script>
Example - set the max value of the TimePicker
<input id="timepicker" />
<script>
$("#timepicker").kendoTimePicker();
var timepicker = $("#timepicker").data("kendoTimePicker");
timepicker.max(new Date(2000, 0, 1, 22, 0, 0));
</script>
Example - render all available hours
<input id="timepicker" />
<script>
$("#timepicker").kendoTimePicker();
var timepicker = $("#timepicker").data("kendoTimePicker");
timepicker.max(new Date(2000, 0, 1, 23, 30, 0));
</script>