selected date in datepicker code example
Example: datepicker get selected date
$(function() {
$("#datepicker").datepicker();
$("#datepicker").val();
$("#datepicker").on("change",function(){
var selected = $(this).val();
alert(selected);
});
});