Edit this page

change

Triggered when the underlying value of a DateTimePicker is changed.

Event Data

e.sender kendo.ui.DateTimePicker

The widget instance which fired the event.

Example - subscribe to the "change" event during initialization

<input id="datetimepicker" />
<script>
$("#datetimepicker").kendoDateTimePicker({
    change: function() {
        var value = this.value();
        console.log(value); //value is the selected date in the datetimepicker
    }
});
</script>

Example - subscribe to the "change" event after initialization

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

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

datetimepicker.bind("change", function() {
    var value = this.value();
    console.log(value); //value is the selected date in the datetimepicker
});
</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