Prob with jqeury-ui with Json format datetime

Prob with jqeury-ui with Json format datetime


Hi,

       i develop web app mvc4 .net with jquery-ui for datepicker but i remark some field ( date time) have a wrong date when i click on the icon for datepicker or field input.

With visual studio i follow on debugger mode in the librairy jquery-ui ( jQuery UI - v1.11.4 - 2015-03-15 )  and i see always the same error that is throw at the line 9223

value = 2015-04-02T00:00:00

9220      if (iValue < value.length){
9221         extra = value.substr(iValue);
9222            if (!/^\s+/.test(extra)) {
9223                  throw "Extra/unparsed characters found in date: " + extra;
9224            }
9226       }

the result and that fall in the catch(e)  ( line 9480 ) . 

And more long in the code ( line 9495 day += parseInt(matches[1],10); break;  ) i have a big number for the day ( 2016) so when the result is return to the web page I've a wrong date when the code return a new date ( line 9509 ) 

year = 2015   OK
month= 3      OK
day= 2016    ERROR

9509 return new Date(year, month, day);


can you help me ?