If the infection is caused by a common viral infection and no other complications occur, then your eyes should clear up within a few days to two weeks. Infection also can be caused by bacterial conjunctivitis, which — even with treatment such as prescription antibiotic eye drops — can last up to a month or longer. However, with this type of infection, people should no longer be contagious 24 hours after antibiotic treatment begins.