If your baby is younger than six months, has signs of dehydration, or if the diarrhea has lasted more than a day, call your doctor.