Let’s say you want to change the language of the date picker to spanish:
1) Add the locale file in the HTML
2) Change the options:
To change the format, you can just set it like this:
<input type="text" data-plugin-datepicker data-plugin-options='{"format": "yy/mm/dd"}' class="form-control">
Or change the default settings:
(assets/javascripts/theme-custom.js)
$.extend(theme.PluginDatePicker.defaults, {
format: "yy/mm/dd"
});
Available Options:
http://bootstrap-datepicker.readthedocs.org/en/release/options.html