Set _createdAt to "..ago" format by using Moment.js
I'm trying to change the _createdAt format to "... ago"
I have put the Moment.js in my app.
I need to list the _createdAt in the required format by putting code like this in the mapping of the label to the createdAt:
codevar a = moment(value.createdAt, "YYYY-MM-DD HH:mm:ss.SSS");
var b = moment();
var c = a.from(b);
Appery('mobilelabel_49').text(c);/code
It have been proved that its working from my experiment.
I'm not sure about how to change all the text of the label (not only the first one)
And "var a" need to get the response of the _createdAt of the service