I would like to set the date of the day by default in my datepicker.
code:
<template lang="html">
<input type="date" v-model="date">
</template>
<script lang="js">
export default {
name: 'component',
props: [],
mounted() {
},
data() {
return {
// date: new Date().toJSON.split('T')[0],
date: new Date(),
}
},
methods: {
},
computed: {
},
}
</script>
it does not work unfortunately, I was told about moment js but I do not know how we use it