I am using the UI DatePicker from jQuery UI as the stand alone picker. I have this code:
And the
This is what worked for me:
$.fn.datepicker.defaults.format = 'yy-mm-dd'