//Bootstrap datepicker change date format solution , Jquery datepicker is under this solution
If by ID: just change "#datepicker" to your input field id
$('#datepicker').datepicker({
format: 'dd/mm/yyyy'
});
If by Class: just change "#datepicker" to your input field class
$('.datepicker').datepicker({
format: 'dd/mm/yyyy'
});
//jquery datepicker change date format solution
just change "#datepicker" to your input field id
$("#datepicker").datepicker({
dateFormat: 'dd-mm-yy'
});
$('#yourInputId').datepicker({
startDate: new Date(),
format: 'dd/mm/yyyy', //you can change date format to any
autoclose: true,
todayHighlight: true,
startDate: new Date(), //this will be today's date
endDate: new Date(new Date().setDate(new Date().getDate() + 5))
});
var datepicker = $.fn.datepicker.noConflict(); // return $.fn.datepicker to previously assigned value
$.fn.bootstrapDP = datepicker; // give $().bootstrapDP the bootstrap-datepicker functionality