When does the doctor start checking cervix in 3rd tri?

Mama

When does the doctor start checking cervix in 3rd tri? I'm 31 weeks and I remember with my first she checked me late in the homestretch but can't remember how many weeks.