I want to convert systematic date into readable date format. However when I pass systematic date as argument to date constructor I get Invalid date
response. How to do this properly in order to display formatted date such as dd-mm-yyyy
for GMT+2 ?
var date = message.date; // => 1466663308000
var dateObject = new Date(date);
console.log(dateObject);
Console output:
Invalid Date