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