In this article, we will show you Vuejs datetimepicker Example. This article will give you simple example of how to disable dates in Vuejs datetimepicker. you will learn datetimepicker disable dates.
Step:- 1 Create Vue App
vue create myApp
Step:- 2 Install vuejs-datepicker Package
npm install vuejs-datepicker --save
Step:- 3 Use vuejs-datepicker in App.vue
open your app.vue file and use this code
src/App.vue
<template> <div id="app"> <img alt="Vue logo" src="./assets/logo.png"> <datepicker name="birthdate"></datepicker> </div> </template> <script> import Datepicker from 'vuejs-datepicker' export default { name: 'app', components: { Datepicker } } </script>
Now you can run vue js following command:
npm run serve