moment current time format code example
Example 1: moment now format
var date = moment().format('MM/DD/YYYY');
Example 2: how to get current time using moment
var startDate = moment().subtract(1, 'days'); //one day before the current time
var date = moment().format('MM/DD/YYYY');
var startDate = moment().subtract(1, 'days'); //one day before the current time