It really depends on the extent of the surgery. When it comes to returning to work and light activities, it is only a week or two.
That being said, a full recovery does take time. For smaller, less-invasive surgeries the average is 6 weeks to 2 months. For moderate work - 3 to 6 months. For more extensive work - 6 to 12 months.
The doctor you work with will be able to give you the most realistic recovery timeline.