I am trying to convert a series of string tags displaying durations in the ISO8601 format to DateTime tags or Integer tags. I considered using an expression tag, but our expression was unsuccessful (see example below). This expression returns "null Days, null Hours and null Minutes." I am less concerned with the actual date, I am only needing the days, hours, and minutes. Does anyone have any advice or possible solutions?
concat(
(substring({[~]AStringTag.value},1,(indexOf({[~]AStringTag.value},"D"))))
, " Days, "
, (substring({[~]AStringTag.value},(indexOf({[~]AStringTag.value},"T")+1)
,(indexOf({[~]AStringTag.value},"H"))))
, " Hours and "
, (substring({[~]AStringTag.value},(indexOf({[~]AStringTag.value},"H")+1)
,(indexOf({[~]AStringTag.value},"M"))))
, " Minutes"
)