ankurk91 / vue-bootstrap-datetimepicker

Vue.js component for eonasdan bootstrap datetimepicker
MIT License
223 stars 66 forks source link

Date Format #7

Closed boscho87 closed 7 years ago

boscho87 commented 7 years ago

**I'm submitting a

[ ] Bug report => search github for a similar issue or PR before submitting
[ ] Feature request
[ X] Other, please describe

How can i change the date format ?

ankurk91 commented 7 years ago

http://eonasdan.github.io/bootstrap-datetimepicker/Options/#format

This date-picker follows moment.js format tokens.

boscho87 commented 7 years ago

can you add an example... i dont know where i need to put the config proberties

ankurk91 commented 7 years ago

Examples can be found in examples folder of this repo. Essentially you can pass any config property documented in above given link.

// Vue 
export default {
data ()  {
return {
    config :{
        format: 'DD/MM/YYYY'
   },
     date : null,
 }
}
}
 <date-picker :config="config" v-model="date"></date-picker>