Hours after President Trump lavished praise on so-called Dreamers, a federal judge questioned the Department of Homeland Security in Brooklyn Thursday about the deadline looming for the thousands of immigrants brought into the United States illegally when they were children to renew their status — or be deported.

“It would be useful to take some of the pressure off the various parties, especially the very accomplished young people the president speaks of with such admiration,” Brooklyn federal Judge Nicholas Garaufis said as he strongly hinted the Justice Department should push back the “arbitrary” deadline of Oct. 6.

“The thing about deadlines is they can be extended,” Garaufis told ‎Deputy Assistant Attorney General Brett Schumate. “No one can be harmed by deadlines. Certainly not that 800,000 people who are sweating that someone will knock on their door, and send them back to a country they don’t know, with a language they don’t speak.

“The fact is you can always deport them later, they’re not going to object to being here an extra six months,” the judge added.

The parties were in court to discuss a planned class action challenging the Trump administration’s decision to wind down Deferred Action for Childhood Arrivals.

The suit stemmed from a 2016 challenge to a court decision that barred the Deferred Action for Parents of Americans and Lawful Permanent Residents (DAPA) program and the expansion of DACA from taking effect.

Yet the judge said he was hopeful this could be meted out in the executive branches of government and not in his courtroom, citing Trump’s Thursday morning tweet — after informing the court, “I do follow the President” on Twitter.

“Does anybody really want to throw out good, educated and accomplished young people who have jobs, some serving in the military? Really!…..” Trump wrote at 6:28 a.m.

The tweet came as top Democrats said they had made a deal with the President to protect the so-called “Dreamers” from being deported.

“They can’t plan their lives on tweets and promises,” Karen C. Tumlin of the National Immigration Law Center said following the hearing, as she stood beside lead plaintiff, Martin Jonathan Batalla Vidal.

“It’s going to be a long process, but we’re positive that Congress will come out with a law that helps us,” Vidal said.

The parties are due back in court Sept. 26. ​