
default format header: 1月 2019
now i want to change format: 2019/1 , Please confirm how to change it?
Don't have prop to change it.
You just can change the language.
@mengxiong10
language only change text of label can not change format to display?
some cases we wana change format to display as yyyy/mm, mm/yyyy..
if have any idea please help to tell me !
You can switch position of year and months by css #223. But cann't format now.
You can switch position of year and months by css #223. But cann't format now.
Thank you, it's worked. but if you update to allow format is OK.
v3.0.
You can set it by lang.
<date-picker :lang="locale" />
```js
// import defalut locale.
import 'vue2-datepicker/locale/zh-cn';
export default {
date() {
return {
locale: {
yearFormat: 'YYYY /',
monthFormat: 'M',
monthBeforeYear: false,
},
};
},
};```
Most helpful comment
v3.0.
You can set it by lang.
```js
// import defalut locale.
import 'vue2-datepicker/locale/zh-cn';
export default {
date() {
return {
locale: {
yearFormat: 'YYYY /',
monthFormat: 'M',
monthBeforeYear: false,
},
};
},
};```