hilongjw / vue-datepicker

[Deprecated] calendar and datepicker component with material design for Vue.js
http://hilongjw.github.io/vue-datepicker/demo.html
MIT License
702 stars 207 forks source link

How can I use other format? #77

Open hoksilato opened 7 years ago

hoksilato commented 7 years ago

How can I use the other format? Such as: 'MM/DD/YYYY', I tried to change it in the config but no luck.

Thanks

stevepop commented 7 years ago

@hoksilato I used it this way and it worked;

 option: {
        type: 'day',
         week: ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'],
         month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
          format: 'DD/MM/YYYY'
}
hoksilato commented 7 years ago

Thanks, I tried but it didn't work :(, I'm using Vue 1.

brandonn1231 commented 7 years ago

@hoksilato were you ever able to figure out what the problem was? I'm using vue 2, but I'm also running into this issue. I tried changing the code in the .vue file, but it doesn't affect the output :(

hoksilato commented 7 years ago

@brandonn1231 I tried but no luck