Tā zài nà duàn jiānnán de niányuè lǐ jiānchí le xiàlái.
He persevered through those difficult years.
Tips
usage
年月 is more literary than 时间 (time). It often carries a sense of passing time and lived experience, especially in reflective or nostalgic contexts. 那段年月 means 'those years/that period' in a reminiscing tone.