parse.com - How to use momentjs to find number of days between ParseServer object updatedAt -


how find number of days difference between today , parse server object column updatedat using momentjs. not sure whats exact format of updatedat column.

if have json representation of parseobject, can create moment object "iso" property.

const obj = yourparseobject.tojson() const momentdate = moment(obj.updatedat.iso).fromnow() 

Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -