I use bootstrap-vue, which includes an input type of date.
When I write some number, the default format is yyyyyy-mm-dd.
I want to change that format to yyyy-mm-dd.
use a formatter:
:formatter="format"
Declare how the value should be formatted within this function:
format(value, event) {
return moment(value).format('YYYY-MM-DD')
}
As an example using the momentjs library.