An ex-gynecologist convicted of sexually abusing hundreds of patients was ordered to spend the next two months in jail as he awaits sentencing, a federal judge in New York City ruled Wednesday.

After hearing statements from some of the victims during the bail hearing, U.S. District Court Judge Richard Berman tersely shot down defense attorneys seeking to allow the doctor, Robert Hadden, to remain free while awaiting an April sentencing hearing.

"I’m done, and you’re done," Berman was quoted by the New York Daily News as saying. Afterward, Hadden’s attorneys filed papers appealing the judge’s detention order.

Hadden had worked at two prestigious Manhattan hospitals — Columbia University Irving Medical Center and New York-Presbyterian Hospital — until complaints about his attacks shut down his career a decade ago.

NEW YORK OB-GYN ACCUSED OF MOLESTING PATIENTS DID SO HIS ENTIRE CAREER, PROSECUTORS CLAIM

Robert Hadden

Dr. Robert A. Hadden, formerly of Columbia University, was convicted of sex trafficking for the prolonged abuse of gynecological patients. (AP Photo/Yuki Iwamura, File)

Hadden, 64, of Englewood, New Jersey, was convicted last week after less than a day of deliberations at a two-week trial, in which nine former patients described how he sexually abused them during examinations, when they were most vulnerable.

One of his victims was Evelyn Yang, the wife of former presidential candidate Andrew Yang, who also ran unsuccessfully for New York City mayor.

Hadden’s conviction in federal court on four counts of enticing victims to cross state lines so he could sexually abuse them carries a potential penalty of decades in prison.

After the verdict, U.S. Attorney Damian Williams issued a statement calling Hadden "a predator in a white coat."

NEW YORK OB-GYN ACCUSED OF MOLESTING 2 DOZEN PATIENTS, INCLUDING ANDREW YANG'S WIFE, FACES FEDERAL CHARGES

Dr. Robert Hadden charged

Robert Hadden seen in Manhattan Supreme Court on Thursday, Nov. 6, 2014.  (Jefferson Siegel/NY Daily News via Getty Images)

At the time, the judge declined to to send Hadden immediately to jail, but suggested that he was "mystified" that Hadden had avoided prison.

At Wednesday’s hearing, the judge heard from nine women victimized by the doctor, as well as written statements from 43 other victims — all of whom urged the judge to immediately remand Hadden into custody.

He had been under electronic monitoring and had been free on $1 million bail.

Hadden’s attorneys argued that he was not a flight risk, but federal prosecutors urged the judge to consider the severity of his crimes.

CLICK HERE TO GET THE FOX NEWS APP

For Hadden’s accusers, the federal case represents a second chance for a harsher punishment for the doctor. In his 2016 plea deal with the Manhattan District Attorney’s Office, Hadden surrendered his medical license but wasn’t required to serve any jail time.

The district attorney at the time, Cyrus Vance Jr., defended his decision. Because a conviction wasn’t assured, he argued, his office sought a plea deal to prevent Hadden from practicing medicine and from victimizing additional women.