Suppose I have a timetable for a particular subject with subject code say(MI132). Now as per the timetable, the classes of MI132 are on Monday, Tuesday and Wednesday each week for a session. The session might start on the date say(12/01/2019). Now the first class for the subject starts on 12/01/2019 and the last class is on 30/11/2019. What I want is an array of dates on which this particular subject MI132 will have classes? Now I know how I can write the code for this in PHP. It would be a code of say 50-100 lines. I have the logic with me. But do we have an in-built function which gives me an array of dates(for a duration 12/01/2019-31/11/2019) when I provide it the days only?
Any other approach will also be appreciated. I only need the array of dates on which that subject will have a class.