I have to set the date in my datepicker in dd/mm/yyyy format. Whet I\'m trying to do, with Javascript is this:
var year = 2014;
var month = 5;
var day = 10
"As with bootstrap’s own plugins, datepicker provides a data-api that can be used to instantiate datepickers without the need for custom javascript..."
Boostrap DatePicker Documentation
Maybe you want to set format without DatePicker instance, for that, you have to add the property data-date-format="DateFormat"
to main Div tag, for example: