§1. Parents are obliged to take care that infants are baptized in the first few weeks; as soon as possible after the birth or even before it, they are to go to the pastor to request the sacrament for their child and to be prepared properly for it.
§2. An infant in danger of death is to be baptized without delay.
Source: Code of Canon Law (Vatican.va)