этот работал для меня.
$('#thedate').datepicker({ dateFormat: 'dd-mm-yy', altField: '#thealtdate', altFormat: 'yy-mm-dd' });