Diarrhea caused by switching dog food usually lasts for a few days. If the symptoms persist beyond a week or seem to be worsening, contact your veterinarian for advice. It could be an indication that your dog has a sensitivity to an ingredient or that there's an underlying health issue.