I have an array of string items … … and I want to achieve a result like the one below … Any help is really appreciated. Answer Firstly one needs to separate the day value from the hours value part of a single opening hours string. This either can be achieved via indexOf, substring and trim … … or it