how to get current time with date using moment in javascript code example
Example: how to get current time using moment
var startDate = moment().subtract(1, 'days'); //one day before the current time
var startDate = moment().subtract(1, 'days'); //one day before the current time