The duration of treatment can vary depending on the type and severity of the infection. Generally, mild yeast infections can be resolved within a few days of using antifungal treatments. Bacterial vaginosis or trichomoniasis may require longer courses of antibiotics or other prescribed medications.