All Components

DateTimePicker Overview

The DateTimePicker combines the Kendo UI DateInput and Calendar components.

It enables the user to enter or pick a date and time value.

The DateTimePicker wrapper for Vue is a client-side wrapper for the Kendo UI DateTimePicker widget.

Basic Usage

The following example demonstrates the DateTimePicker in action.

<div id="vueapp" class="vue-app">
    <h5>Selected date: {{date}}</h5>

    <kendo-datetimepicker v-model="date"
        :date-input="true"
        :min="minDate"
        :max="maxDate"
        :value="currentDate"    
        style="width: 250px"></kendo-datetimepicker>
</div>
Vue.use(DateinputsInstaller);
new Vue({
    el: '#vueapp',
    data: {
        date: null,
        minDate: new Date(2017, 9, 1),
        maxDate: new Date(2018, 10, 30),
        currentDate: new Date(2018, 8, 10)
    }
})

Functionality and Features

Events

The following example demonstrates basic DateTimePicker events. You can subscribe to all DateTimePicker events by the handler name.

<div id="vueapp" class="vue-app">
    <kendo-datetimepicker v-on:open="onOpen"
                          v-on:close="onClose"
                          style="width: 250px">
    </kendo-datetimepicker>
</div>
Vue.use(DateinputsInstaller);
new Vue({
    el: '#app',
    methods: {
        onOpen: function (e) {
            console.log("DateTimePicker is opened");
        },
        onClose: function (e) {
            console.log("DateTimePicker is closed");
        }
    }
})
In this article