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