An employer is not permitted to allow you to work for a two-week period which starts with the date your baby is born. This is known as compulsory maternity leave.
If you work in a factory, you will be not be able to resume work for four weeks after giving birth.
After that, it is up to you to decide when you want to return to work. There are specific rules about the notice you must give to your employer if you want to cut short your maternity leave (i.e. taking less than the full 52 weeks’ leave to which you are entitled), either to return to work early or to share your maternity leave with a partner under the new Shared Parental Leave regime.
Basically, you must give at least eight weeks’ notice to cut short your maternity leave and return to work early.