They usually don't want you more than a week before your due date unless there is a cause. Your OB will schedule it with you. I scheduled mine my last appointment 2 weeks ago. I am currently 34 weeks.
Normally around 39 weeks they book you in
Your doctor will schedule it.