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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -