"Developments in the second quarter especially reflect progress within industrial production. On the demand side household consumption grew," the agency said in a statement.
"Four quarters of growth in a row for the first time since the financial crisis! Things are going better than expected," Danske Bank chief economist Steen Bocian wrote on Twitter.
The prediction had been seen by many economists as being overly optimistic, especially after initial estimates had suggested the economy unexpectedly shrank in the second quarter, but Bocian said the revised data could prove them wrong.
"I wish the discussion on the government's growth forecast stops soon," he said.
However, some observers cautioned that regardless of what happened in the previous quarter, the Danish recovery was looking shaky due to geopolitical tensions in Russia and an economic slowdown in Germany.
"It doesn't change that the growth prospects for the rest of the year are [looking] sluggish," Sydbank economist Peter Bojsen Jakobsen wrote in a note to investors.