Cerebral palsy is often diagnosed in the first two years of life, but the specific age varies depending on when developmental delays or motor difficulties become noticeable.