console.log(+new Date("2017-6-18"), +new Date("2017-06-18"));
//1497715200000 1497744000000
console.log(new Date("2017-6-18"), new Date("2017-06-18"));
//Sun Jun 18 2017 00:00:00 GMT+0800 (中国标准时间) Sun Jun 18 2017 08:00:00 GMT+0800 (中国标准时间)
The time "2017-6-18" and "2017-06-18" is same, but the timestamp of them is different