Hi @Paulie78,
Thanks very much. I've actually started with the "append to array" idea. That seems to be working. And my long set of "set variables" seems to be working as well but the overall "Apply to Each" is creating an error "An action failed. No dependent actions succeeded." I need to figure that out first.

Also, I didn't know you could put expressions in JSON arrays inside compose. Cool! I do like clean "code". I'll play with that and report back here. I wonder if the expressions in your example can reference the "variables" in previous expressions. Here is what I'll try from pulling together all my "set variables". It'd be nice to be able to put comments in there.
{
"SDT":@{items('Apply_to_each')['Date/Time Scheduled']},
"SDD":@{split(variables('SDT'),' ')[0]},
"SM":@{split(variables('SDD'),'/')[0]},
"Dummy":@{concat(if(equals(length(variables('SM')),1),'0',''),variables('SM'))},
"SM":@{concat(if(equals(length(variables('Dummy')),1),'0',''),variables('Dummy'))},
"SD":@{split(variables('SDD'),'/')[1]},
"Dummy":@{concat(if(equals(length(variables('SD')),1),'0',''),variables('SD'))},
"SD":@{concat(if(equals(length(variables('Dummy')),1),'0',''),variables('Dummy'))},
"SY":@{split(variables('SDD'),'/')[2]},
"Dummy":@{concat(if(equals(length(variables('SY')),2),'20',''),variables('SY'))},
"SY":@{concat(if(equals(length(variables('Dummy')),2),'20',''),variables('Dummy'))},
"ST":@{split(variables('SDT'),' ')[1]},
"SAP":@{split(variables('SDT'),' ')[2]},
"SD":@{concat(variables('SY'),'/',variables('SM'),'/',variables('SD'), ' ',variables('ST'),' ',variables('SAP'))}
}