get two types of date formate datepicker code example
Example: get two types of date formate datepicker
$('#book_on').datepicker({
dateFormat: 'mm/dd/y',
onSelect: function(dateText, inst) {
var date = $(this).datepicker('getDate');
$('#span').text($.datepicker.formatDate('dd MM yy', date));
}
});