hello,
i am getting a datestamp from json file.it gives me the wrong date.back to 1970
i have this function in my controller
$scope.formatDate = function(date){
var dateOut = new Date(date);
return dateOut;
};
then in the view
Date:{{article2.PhorumMessage.datestamp|date:"d/m/y à HH:mm"}}
how to fix that?
i am expecting 18 may 2017 i get 18/18/1970
thank you