what's the earliest you can get membranes stripped??

My doc mentioned it to me but I don't know if she said 37w or 38w. So y'all comment