Format date using moment Angularjs
AngularJS has a built in filter for dates. You do not need to use moment, waste of resources.
<span>{{message.time | date}}</span>
https://docs.angularjs.org/api/ng/filter/date
I've used angular-moment successfully in a project of mine. It has a filter that alows you to format the date. Example from the README:
<span>{{message.time | amDateFormat:'dddd, MMMM Do YYYY, h:mm:ss a'}}</span>