I'm not sure that momentjs can read this as a date since there is no identifier. I would suggest changing the value, for example, you have 171054, get every 2 digits since you are sure that it will display as hh: mm: ss, then add an identifier between such as ":" or "-" , and then try formatting the characters again. / p>
source share