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