max

Gets/Sets the max value of the DatePicker.

Parameters

value Date | String

The max date to set.

Returns

Date The max value of the DatePicker.

Example - get the max value of the DatePicker

<input id="datepicker" />
<script>
$("#datepicker").kendoDatePicker();

var datepicker = $("#datepicker").data("kendoDatePicker");

var max = datepicker.max();

console.log(max);
</script>

Example - set the max value of the DatePicker

<input id="datepicker" />
<script>
$("#datepicker").kendoDatePicker();

var datepicker = $("#datepicker").data("kendoDatePicker");

datepicker.max(new Date(2100, 0, 1));
</script>
In this article
Not finding the help you need? Improve this article