unix time stamp to date moment code example
Example 1: convert unix timestamp to date using moment
var dateString = moment.unix(value).format("MM/DD/YYYY");
Example 2: javascript get time ago with moment
const dateTimeAgo = moment("2020-04-04 11:45:26.123").fromNow();
console.log(dateTimeAgo); //> 6 minutes ago