New York (CNN Business) US stocks climbed past their all-time highs on Tuesday, as stocks continued to rally from their December lows.

The S&P 500 reached 2933.68 points, breaking through the historical closing high of 2,930.75 points that it set in September. The Nasdaq nearly hit 8121 points, beating the 8,110 point all-time best close it hit in August. Neither index managed to tackle their respective record intraday highs of 2,940 and 8,133, but market watchers typically measure all-time highs on closing prices.

Hasbro HAS Twitter TWTR Quest Diagnostics DGX Stocks were driven higher Tuesday by stronger shares in the consumer goods, heath care and technology sectors.andwere among the best performers of the day.

The trading day painted a story of strong US consumers, said Edward Moya, senior market analyst at Oanda.

But it was touch-and-go in the market to close out last year.

Read More