The duration of training in a neonatal residency program can vary, but it generally spans three years after completing medical school. This includes rotations in various subspecialties related to neonatology, such as pediatric cardiology, pediatric surgery, and neurology.