Closed greevin closed 7 years ago
https://momentjs.com/docs/#/displaying/format/
I have made some examples in this repo https://github.com/ankurk91/vue-bootstrap-datetimepicker/blob/master/examples/App.vue
Can you share your full code? Html and js part.
Yeah, I've looked the examples, but I don't understand why the date format is not accepted.
HTML: `
<div class="input-group-addon">
<span class="fa fa-calendar fa-fw"></span>
</div>
</div>`
VUE:
data: { start_date: null, configs: { format: 'L', locale: document.documentElement.lang } },
This is all, for now.
Hey, I found a solution for my problem in this link: https://jsfiddle.net/crabbly/xoLwkog9/.
Thank you for your support. :)
I'm submitting a ... (check one with "x")
Tell about your platform
Sorry for the noob question. How can I change the date format passed to Vue? I've already put the format in the settings, but when choosing a date, it goes with another setting.
configs: { format: 'L', locale: document.documentElement.lang }
Screenshot:
Thanks.