Total hip and knee replacements have come a long way. Afterwards, people no longer lay in a hospital bed for three weeks; instead they generally begin walking at home within a day of the procedure.
Of course, recovery still takes time. But it may surprise you to see how quickly that time passes after outpatient surgery, which is an option for some people.
Source: Cleveland Clinic