I\'m working on a NodeJS Projects and I get wrong Date values. And I don\'t get what I am doing wrong.
var d = new Date(results[1].timestamp);
console.log
getDay()
function returns the Day of the date i.e. from sunday to saturday(0 to 6)
getMonth()
function returns month frome January to December (0 to 1) so here you need to add 1 to correctly get the value
and I am afraid you misinterpreted getHours()
result, because if I check for the mentioned date it gives me 13