but it can be two weeks; and sometimes many weeks for long-term infections. Antibiotics should be taken for as long as the doctor has prescribed them.