moment js to current date and time code example
Example 1: format a date moment
moment(testDate).format('MM/DD/YYYY');
Example 2: moment now format
var date = moment().format('MM/DD/YYYY');
moment(testDate).format('MM/DD/YYYY');
var date = moment().format('MM/DD/YYYY');