Planned section

Te

If you have a planned C-section, do they generally do on the due date or before the due date or how does it work? Thanks