this.gts.datePicker = (function() {

  return function(input) {
    $(input).datepicker();
  };

}());

this.gts.datePicker = (function() {

  return function(input) {
    $(input).datepicker({ dateFormat: "yy-mm-dd" });
  };

}());

Fix date format in the datepicker
Fix date format in the datepicker
