format moment js fromNow code example
Example 1: moment now format
var date = moment().format('MM/DD/YYYY');
Example 2: moment js from now
moment(date).fromNow();
var date = moment().format('MM/DD/YYYY');
moment(date).fromNow();