New Delhi, Nov 01 (ANI): The Sensex has hit all-time high after five years and ten months on Friday. The stock index surged to an all-time high just after the opening bell, smashing its earlier record of 21,206 which was set in January 2008. After breaking its 2008 record, the Sensex kept going up, setting a new all-time high record of 21,279.92, up nearly 115 points. At its day's high, Nifty hit 6,329, nearly 30 points away from its record high of 6,357.10. Sustained inflows from foreign investors have been the biggest driver for the Sensex, which gained over 9 percent in the past month. Overseas investors have pumped in close to Rs. 18,000 crore in the past 20 sessions.