The datepicker included i chrome browser allow the users to select dates. The user will see the date in a format and the input value will be always in the format: "YYYY-MM-DD".
I want the same behavior when using bootstrap-datetimepicker.
If I specify the format when initializing the plugin like this
$('.date-picker').datetimepicker({
format: 'DD/MM/YYYY'
});
when I get the input value it's in the same format, 'DD/MM/YYYY'. I want it to be in the standard format which is "YYYY-MM-DD".
Same thing when I specify the locale.
$('.date-picker').datetimepicker({
locale: 'fr'
});
Can any one help me?
Thank you very much