moment js, create a time from a date code example
Example 1: moment js from now
moment(date).fromNow();
Example 2: moment js print date
moment(testDate).format('MM/DD/YYYY');
moment(date).fromNow();
moment(testDate).format('MM/DD/YYYY');