It doesn't happen in any generation apart from Gen II, and there's no definite time frame. It just says "over time", the Berry Juice will harden into a Rare Candy if held by a Shuckle.