In babies with cradle cap and other types of seborrheic dermatitis, the rash tends to go away between 6 months and 1 year of age.