I create a new Date object, using timestamp. If I print out that object, it returns correct date and time. But if I try to use getDate()and getTime(), they get me back wrong numbers.
My code:
var textDate = new Date(timestamp);
console.log(timestamp);
console.log(textDate);
console.log(textDate.getDate(),textDate.getMonth(),textDate.getFullYear());
My console result:
1476483081000
Date 2016-10-14T22:11:21.000Z
15 9 2016
How can I get correct date and month from textDate variable?