I tried the following code
var parts ='2014-04-03'.split('-');
// Please pay attention to the month (parts[1]); JavaScript counts months from 0:
// January - 0, February - 1, etc.
var mydate = new Date(+parts[0], +parts[1] - 1, +parts[2]);
console.log(mydate);
However, the result is
2014-04-02T17:00:00:000Z
I wonder why the result is not 2014-04-03
Thanks