If the pinkeye is caused by bacteria, the person can usually return to day care, school, or work after the infection has been treated for 24 hours with an antibiotic and symptoms are improving. Prescription antibiotic treatment usually kills the bacteria that cause pinkeye. Use medicine as directed.