Can you tell me how long does it take to recover from a corneal ulcer (ulcerative keratitis)?

Days to weeks. The recovery period depends on the type of bacteria, time of diagnosis and appropriateness of treatment. Routine corneal ulcers, diagnosed within the first two days usually clear up in 7-10 days. Some corneal ulcers can take weeks, and rarely months to heal.