This depends on your starting level of fitness and how often you ski. If you're already in decent shape, it may only take a few ski sessions to get in shape for skiing.
However, starting from scratch may take several weeks or months of regular skiing to build up your endurance and strength.