There are only two studies published on patients involved in sports and recreational activities after shoulder replacement. Both suggest from their results to expect an average of three to four months for partial return to sports. It will probably be more like six months (from the time of surgery) to full return to your game.
But the wait should be worth it. Patients who were active but limited by pain before surgery report that their game is even better after rehab and recovery. An average improvement after surgery of five strokes has been reported by other golfers who had shoulder replacement surgery.
Sports specific physical therapy can be very helpful. This is the perfect opportunity to work on improving your swing and replacing bad habits with new, more effective movement patterns.