While OTC treatments can be effective for mild cases, it is critical to know when to seek veterinary assistance. If diarrhea persists for more than 24 hours, if your dog is very young, old, or has pre-existing health conditions, or if any additional symptoms are present, immediate veterinary care is warranted. The veterinarian may perform tests to identify any underlying issues and recommend appropriate treatment.