moment js from now code example
Example 1: npm momen
npm i moment
Example 2: format a date moment
moment(testDate).format('MM/DD/YYYY');
Example 3: moment now format
var date = moment().format('MM/DD/YYYY');
Example 4: moment js from now
moment(date).fromNow();
Example 5: moment to javascript date
let now = moment()
let now = now.toDate()