Its doing that only. Please - support is not a place to learn the things. You must try PHP course or WordPress course somewhere. And I already shown you how the custom code is added and modified and where it's been added. If you would like to modify it you can do it as per you will as custom code is not part of our support and its beyond the scope of our support policy but I wanted to offer you bit extra mile help.
As shared before - if you need custom programming for your project you are welcome to contact any of our certified partners:
There are certain limitations and in your case as the date field is belongs to repeating field group, we will require a view to display the repeating field group fields. Internally repeating field groups are managed as One to Many post relationship and repeating field group items will be child of current post.
But I think I already shared a solution with you it's up to you if you want to keep using the solution I shared of do amendment with your structure.