SyntaxFix
Write A Post
Hire A Developer
Questions
Moment.js can convert unix timestamps into any custom format
In this case : var time = moment(1382086394000).format("DD-MM-YYYY h:mm:ss");
var time = moment(1382086394000).format("DD-MM-YYYY h:mm:ss");
will print 18-10-2013 11:53:14;
18-10-2013 11:53:14
Here's a plunker that demonstrates this.