var timeArr = moment().format(\'HH:mm:ss\').split(\':\'); var timeInMilliseconds = (timeArr[0] * 3600000) + (timeArr[1] * 60000);
This solution works,
See this link http://momentjs.com/docs/#/displaying/unix-timestamp-milliseconds/
valueOf() is the function you're looking for.
valueOf()
Editing my answer (OP wants milliseconds of today, not since epoch)
You want the milliseconds() function OR you could go the route of moment().valueOf()
milliseconds()
moment().valueOf()