There once was a time when knee or hip replacement surgery meant spending a week or more in the hospital, sometimes followed by time in a rehabilitation facility, then physical therapy and home exercises. Today, with advances in surgical techniques, pain management and early interventions, a hospital stay after replacement surgery may be as little as 24 hours.