U.S. stocks closed sharply higher on Friday as quarterly earnings top estimates, while the economy continues to grow.

The Dow Jones industrial average rose 223.92 points and hit intraday and closing records. The 30-stock index finished the session at 26,616.71.

The gained 1.2 percent to 2,872.87, with tech and health care as the best-performing sectors, and also reached an all-time high. The broad index also had its biggest one-day gain since March 1, 2017.

The Nasdaq composite advanced 1.3 percent to close at 7,505.77 and notched record highs. It also had its best day since Jan. 2.

The major indexes also posted weekly gains of at least 2 percent.

AbbVie, Honeywell, Intel and Rockwell are among the latest companies to report better-than expected earnings and revenue.

Shares of AbbVie and Honeywell rose 13.8 percent and 1.9 percent, respectively, while Intel gained 10.6 percent. Rockwell advanced 1.7 percent.

Overall, this earnings season have been strong thus far. Of the S&P 500 companies that have reported as of Friday morning, 80 percent have reported-better-than-expected earnings while 82 percent have surpassed sales estimates, according to data from Thomson Reuters I/B/E/S.

"The beat rates and growth rates are as good as we have measured for these 133 companies in any earnings season over the past five years," said Nick Raich, CEO of The Earnings Scout, in a note. "Most importantly, 1Q 2018 EPS estimates are rising and that is the first time we have seen aggregate S&P 500 EPS estimates going higher in any earnings season in seven years."