moment get current time and format it 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