added the date loop for adding a session to a timetable