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();

/* The result can be observed in the DevTools(F12) console of the browser. */
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