Please attach the actual page you are working on. It looks like the datepicker is set to use m-d-Y not Y-m-d. That can be changed in the datepicker code if that is what you want to use. The code that has to be added in the javascript is:
dateFormat: "yy-mm-dd"