Edit this page

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

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>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy