datepicker bug duplicating year

datepicker bug duplicating year

I tried this

 $("#datepicker" ).datepicker({ dateFormat: 'yyyy-mm-dd' });
 
but my dates look like this
 
20102010-10-16
 
Any solution?