I need to set the initial date for the date picker to 03/20/2010 in mm-dd-yyyyy format. I have done this
$('#datepicker').datepicker('option', 'dateFormat', 'dd-mm-yy');
Year is specified as y for 2 digits and yy for 4 digits, as stated here.
y
yy