27
rated 0 times
[
29]
[
2]
/ answers: 1 / hits: 6653
/ 4 Years ago, tue, july 28, 2020, 12:00:00
I'am trying to get a proper output of date from the v-calendar. Now this looks like:
Fri Jul 31 2020 00:00:00 GMT+0200 (utc summertime)
This should be 2020-07-28 etc.. I Can't find anything in the documentation that work, anyone know how to change output?
Code:
{{ date }}
<v-date-picker
v-model="date"
color="red"
is-inline
:available-dates='dates'
:masks='{ input:["L", "YYYY-MM-DD"] }'
/>
Script for test:
<script>
var app = new Vue({
el: "#dic",
data: {
date: moment().format('YYYY-MM-DD'),
},
});
</script>
More From » vue.js