Typically, an eye infection can last anywhere from two days to a week. In severe cases, it can last for a few weeks to a month.