It takes around 2 to 3 hours to have the corneal transplant surgery done and you can usually leave the hospital and go home within an hour or 2 after the surgery.
It's an outpatient procedure but you will need someone to drive you home after having the corneal transplant surgery.