On click of bootstrap3 datepicker I am getting selected date and setting it as innerHTML to a table .
Below is my code
$('[id^="dp"]').datepicker({
format: 'dd/mm/yyyy',
autoclose: true
}).on('changeDate', function (e) {
// `e` here contains the extra attributes
var Date = e.date;
newDate=Date.(How to change format here )
$(this).text(newDate);
});
Currently e.Date giving me date in format
Tue Sep 05 2017 00:00:00 GMT+0530 (India Standard Time)
As per my knowledge its default format in jQuery .
How to change it in dd/mm/yyyy ??