Length of Maternity/Parental Leave

Hi…when are employees taking maternity and parental leave need required to tell their employer how long they will be off work? I know they have the option of taking 12 or 18 months. We are located in Ontario.