Am using a datepicker in my application.
code is :
this.$el.find('#ondate').datepicker({
        minDate: 0,
        maxDate: "+2M",
        onSelect: function(x) {
          self.startDepartureValidation();
          return self.onDate(x);
        },
//        numberOfMonths: numberOfMonths,
        beforeShow: function() {
          return $('#ondate').datepicker("option", "maxDate", $("#returndate").datepicker('getDate'));
        }
      });
when i seklect the date am getting the format as MM/DD/YYYY but i need as DD/MM/YYYY in the textbox.
if i use the dateformat: in datepicker i will get that format but , with MM/DD/YYYY am having so many calculations in my application.
Note: i need just in datepicker textbox after seklecting date it should show in that textbox as DD/MM/YYYY. without changing in our code in other places
 
    