get two types of date formate datepicker

Solutions on MaxInterview for get two types of date formate datepicker by the best coders in the world

showing results for - "get two types of date formate datepicker"
Lea
01 Nov 2018
1$('#book_on').datepicker({
2    dateFormat: 'mm/dd/y',
3    onSelect: function(dateText, inst) {
4        var date = $(this).datepicker('getDate');
5        $('#span').text($.datepicker.formatDate('dd MM yy', date));
6    }
7});​