Fix up all of the grammar issues in the given sentence.
It was my birthday on 21, July when I was a second-year pupil.
It was July 21, my birthday, on 21, July when I was a second-year pupil grade student.