Anyone can tell me why if I type this:
var datedate1 = new Date(2017, 05, 17);
console.log(datedate1);
The console shows: 2017-06-16T22:00:00.000Z
?
Thank you.
Anyone can tell me why if I type this:
var datedate1 = new Date(2017, 05, 17);
console.log(datedate1);
The console shows: 2017-06-16T22:00:00.000Z
?
Thank you.
There are 2 issues here:
Another option is to look at using a framework like moment https://www.npmjs.com/package/moment