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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -