moment format time milliseconds code example
Example 1: moment hour minute
moment().format('HH:mm:ss')
Example 2: moment to javascript date
let now = moment()
let now = now.toDate()
moment().format('HH:mm:ss')
let now = moment()
let now = now.toDate()