get current date and time moment js 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