I am using the UI DatePicker from jQuery UI as the stand alone picker. I have this code:
And the
This works too:
$("#datepicker").datepicker({ dateFormat:'d-m-yy' });