The Los Angeles Superior Court ordered a paternity test for the 3-month-old daughter of reality TV star Anna Nicole Smith, FOXNews.com has learned.

The ruling on the lawsuit brought by Smith's ex-beau, photojournalist Larry Birkhead, was released on Thursday. Smith and her baby, Dannielynn, will have to submit DNA samples in order to determine who the baby's father is.

Click here for the Anna Nicole Smith Celebrity Center

Birkhead insists he fathered the child. Smith has said her little girl's father is her lawyer and current boyfriend, Howard K. Stern.

"Christmas has come early, and I thank God that I will soon have the opportunity to prove that I am the father of Dannielynn and eventually hold her in my arms," Birkhead said Thursday in a statement.

Smith has until now not complied with Birkhead's requests for a test on the infant, whose full name is Dannielynn Hope Marshall Stern.

So Birkhead filed a lawsuit and the hearing went forward last week, after Judge Robert A. Schnider denied Smith's request for a delay in the proceedings. Birkhead and his attorney Debra Opri were present; Smith was not.

"Today is a good day for Larry Birkhead and father’s rights everywhere," Opri said in a statement. "I want to thank everyone for their support and to ask Anna Nicole Smith to do the right thing."

Click here to watch Debra Opri on FOX

In October, Birkhead filed a second lawsuit against the former Playboy Playmate, this time alleging fraud and conspiracy. He had earlier filed a lawsuit in Los Angeles seeking a court order to demand Smith, who is currently living in the Bahamas, bring the baby to California for a paternity test.

In the second lawsuit, Birkhead alleges Smith provided fraudulent information when applying for her daughter's birth certificate in the Bahamas. Smith identified Stern as the father.

The lawsuit asks that Stern's name be deleted from the girl's birth certificate and replaced with Birkhead's.

"I am the father of Dannielynn and I think this is ... a crime," Birkhead said in October. "I expect to be reunited with my daughter with the help of my attorneys."

Smith's daughter was born Sept. 7. Three days later, Smith's 20-year-old son, Daniel, died while visiting her in a Nassau hospital.

FOX News' Catherine Donaldson-Evans and The Associated Press contributed to this report.

Click here for the Anna Nicole Smith Celebrity Center