ankurk91 / vue-bootstrap-datetimepicker

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

AM/PM not working #31

Closed sherlyseptiani closed 6 years ago

sherlyseptiani commented 6 years ago

I'm submitting a ... (check one with "x")

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

Current behavior In your JS Fiddle and in my implementation, the AM-PM doesn't change anything on the data. How to make it to 24 hour format? For example if we choose 4 PM then it will be 16:00 because now we cannot differentiate between AM and PM

Minimal reproduction of the problem with instructions On your JS fiddle

ankurk91 commented 6 years ago

The datepicker uses moment js formats https://momentjs.com/docs/#/displaying/format/ so you can pass the suitable format in configs.

https://jsfiddle.net/zupazg2u/1241/

format: 'DD/MM/YYYY h:mm:ss A',