Rosie O'Donnell and Ex Michelle Rounds Get Joint Custody of 2-Year-Old Daughter

This video is unavailable because we were unable to load a message from our sponsors.

If you are using ad-blocking software, please disable it and reload the page.

Rosie O’Donnell and her ex, Michelle Rounds, were in court on Wednesday to determine custody of their 2-year-old daughter, Dakota. When the hearing was over, the former couple left with an agreement for joint custody.

Outside the courtroom, ET caught up with Rounds’ attorney, who said that his client was happy with the agreement, while O'Donnell joked to reporters that, "There's peace in the Middle East."

"It's done," the 53-year-old TV personality said in a statement to ET. "We’ve settled. We’re both very happy about the outcome."

WATCH: Rosie O'Donnell Talks Estranged Daughter Chelsea and Depression in Emotional Stand-Up Gig

Rounds spoke to ET earlier this year about the custody battle, saying that she would "walk away' from the couple’s prenuptial agreement if O’Donnell, who filed for divorce in February, would give her full custody of their daughter.

"I made my first million before the age of 39, that was before I met Rosie. I don't need Rosie's money," Rounds, a former IT consultant, said at the time. "I don't want Rosie's money. Nothing was in my name. The prenup money means nothing to me."

Rounds stressed that, in seeking full custody, she was looking to provide a "healthier" and "way more protective" environment for her daughter. The couple adopted Dakota as an infant in January 2013, after marrying in June 2012.

"I just want my child to have the best possible environment to grow up in, a normal life,” Rounds told ET. “Right now she's got 24/7 nannies over there at Rosie's house. I don't want my child to have a 24/7 nanny."

WATCH: Rosie O'Donnell's Estranged Wife Michelle Rounds Steps Out Day After Hospitalization

"[Rosie] leaves the baby overnight with nannies," O’Donnell’s ex also alleged. "She has the monitor in the nanny's room."

Rounds added that the couple’s parenting style was a major source of conflict in their marriage.

"I give her mild discipline instead of like -- carte blanche, do whatever you want -- which is more or less how Rosie likes to do things," she said.

WATCH: Rosie O'Donnell's Ex Michelle Rounds: I'll Walk Away From the Prenup If I Get Full Custody