You shouldn't be changing the jQuery UI code, and it isn't necessary to do so. Changing the core code will make upgrading at a later time more difficult. As Kevin stated and showed, just override the dateFormat setting in your datepicker initialisation.