var picker1 = $('#datepicker').datepicker({
inline: true,
dateFormat:"d M yyyy",
onSelect: function(formattedDate){
$('#datepicker2').val(formattedDate);
},
navTitles: {
days: 'MM'
}
})
var picker2 = $('#datepicker2').datepicker({
dateFormat:"d M yyyy",
navTitles: {
days: 'MM'
}
})