What’s the soonest your doc will do a membrane sweep??

Does it just depend on dilation or do you have to be a certain number of weeks?