I got an ISO 8601 string as duration and I need to format it as XhYm( 1h20m). Does anyone have some suggestions?
What I did right now is this:
const duration = moment.duration(secondData.duration);
const formatted = moment.utc(duration.asMilliseconds()).format('HH:mm');