var timeArr = moment().format(\'HH:mm:ss\').split(\':\'); var timeInMilliseconds = (timeArr[0] * 3600000) + (timeArr[1] * 60000);
This solution works,
var timeArr = moment().format('x');
returns the Unix Millisecond Timestamp as per the format() documentation.