max

Gets or sets the maximum value of the DateTimePicker.

Parameters

value Date|String

The maximum time value to set for a DateTimePicker, expressed as a Date object or as a string.

Returns

Date The maximum time value of a DateTimePicker.

Example - get the max value of the DateTimePicker

<input id="datetimepicker" />
<script>
$("#datetimepicker").kendoDateTimePicker();

var datetimepicker = $("#datetimepicker").data("kendoDateTimePicker");

var max = datetimepicker.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 DateTimePicker

<input id="datetimepicker" />
<script>
$("#datetimepicker").kendoDateTimePicker();

var datetimepicker = $("#datetimepicker").data("kendoDateTimePicker");

datetimepicker.max(new Date(2100, 0, 1));
</script>
In this article