The format string for the
datepicker
widget uses
yy
to represent the four-digit year. By setting the format to
yyyy-mm-dd
, you've told it to put the four-digit year followed by the four-digit year, which is why you're getting
20142014
.
Change the date format to
yy-mm-dd
and you should get the correct output.
http://api.jqueryui.com/datepicker/#utility-formatDate[
^]