I have a string that defines a configurable a range of Business Hours,
0930-1830
May I know how can I split the string above into a collection of hours and (conditional minutes) to populate in a combo box?
Hours:
["09","10","11","12","13","14","15","16","17","18"]
Minutes:
["00","15","30","45"]
However, the minutes is conditional.
E.g. If Business Hours starts at 0930, if 09 hour is selected, minimum minutes is 30.
Thank you.
----------------------------
Edit:
I have split hours and minutes, for From and To values, from the string variable:
Set(
BusinessHoursVal,
First(
ClearCollect(
BusinessHoursCol,
Filter(
Configurations,
"Business_Hours" in Key
)
)
).Value
);
Set (FromHoursVal, Left( BusinessHoursVal, 2 )); //09
Set (FromMinutesVal, Mid( BusinessHoursVal, 3,2 )); //30
Set (ToHoursVal, Mid( BusinessHoursVal, 6,2 )); //18
Set (ToMinutesVal, Right( BusinessHoursVal, 2 )); //30