- Tuesday, November 15, 2016 By David Peter
new Date(year, month[, date[, hours[, minutes[, seconds[, milliseconds]]]]]);
E.g:, var sampleDate = new Date(2016, 11, 15, 0, 0, 0,0);
Sample output : Tue Dec 15 2016 00:00:00
Can you please explain this behavior?