Extract work days only from data range

Certified Associate Developer

Hello, 

I would like how to formulate string which can be foreached after with only working dates between two dates. 

Lets say if I have 

start date: 2021-02-15 19:11:43

end date: 2021-02-22 19:11:43

In this case the result have to be {2021-02-15, 2021-02-16, 2021-02-17, 2021-02-18, 2021-02-19, 2021-02-22}

Any ideas how this can be achieved ?

  Discussion posts and replies are publicly visible