I am using the UI DatePicker from jQuery UI as the stand alone picker. I have this code:
And the
inside the jQuery script code just paste the code.
$( ".selector" ).datepicker({ dateFormat: 'yy-mm-dd' });
this should work.