on date selection event in bootstrap datepicker code example

Example 1: bootstrap datetimepicker onchange event

$('#Release').on('dp.change', function(e){ 
    var formatedValue = e.date.format(e.date._f);
    console.log(formatedValue);
})

Example 2: datepicker select date programmatically bootstrap

$("#datepicker").datepicker("setDate", new Date);

Example 3: bootstrap datepicker on select event

$('.datepicker').datepicker()
    .on(picker_event, function(e) {
        // `e` here contains the extra attributes
    });

Tags:

Misc Example