planned c-section help?!

China
My first c-section was with my first boy two years ago. And it was an emergency c-section. Can anyone tell me about a planned c-section? And how soon do you go to get one? Is it before your due date?