moment get time in 12 hour format code example Example: moment hour minute moment().format('HH:mm:ss')