Pediatricians can treat children from birth until their 21st birthday or beyond, providing comprehensive care for physical, behavioral, and developmental issues. Some pediatricians have general practices, while others specialize in treating specific health conditions in children.