Here is a possible solution:https://jsfiddle.net/7atsua85/
Instead of e.target.value, use $(this).val() as shown below,
$('#datepicker').datepicker()
.on("change", function (e) {
//console.log("Date changed: ", e.target.value);
alert($(this).val())
});