I'm struggling to format the date output from the v-calendar. Currently, it appears like:
Fri Jul 31 2020 00:00:00 GMT+0200 (utc summertime)
However, I would like it to display as 2020-07-28. I have searched through the documentation but couldn't find a solution that works. Does anyone know how to change the output?
Here's the code snippet:
{{ date }}
<v-date-picker
v-model="date"
color="red"
is-inline
:available-dates='dates'
:masks='{ input:["L", "YYYY-MM-DD"] }'
/>
Below is the script used for testing purposes:
<script>
var app = new Vue({
el: "#dic",
data: {
date: moment().format('YYYY-MM-DD'),
},
});
</script>