Here I'll be using the code from bootstrap's 3 example. You have to create a component for the datepicker:
Vue.component('datetimepicker', {
template: `
<div class='input-group date' ref="datetimepicker">
<input type='text' class="form-control" :value="value" @change="update($event)" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
`,
props: ['value'],
methods: {
update(event){
this.$emit('input', event.target.value);
}
},
mounted(){
$(this.$refs.datetimepicker).datetimepicker()
}
});
And now you can use this component like this:
<datetimepicker v-model="myDate"></datetimepicker>