I'm using v-calendar plugin in Nuxt project. Everything works and here is my code:
<script>
export default {
data() {
return {
ArrivalDate: new Date(),
DepartureDate: new Date(),
}
},
methods: {
Submit() {
console.log(this.ArrivalDate)
},
},
}
</script>
<h3>Arrival <</h3>
<v-date-picker v-model="ArrivalDate" :min-date="new Date()" ></v-date-picker>
<h3>Departure </h3>
<v-date-picker v-model="DepartureDate" :min-date="ArrivalDate"></v-date-picker>
I'm looking to the docs but don't know how to format and display this data. I only get errors. this is my output now:
Tue Nov 19 2019 22:15:01 GMT+0100 (Central European Standard Time)
I want to format it like DD:MM:YY and nothing else.