My OB said they like to do it as close to 39 weeks as possible, the longer they stay in the better, mine was at 38+6 cos that was the closest date they had free in their bookings.