After months of jumping through legal hoops, Bill Cosby now has a court date. The comedian and actor is set to stand trial for the 2004 rape of Andrea Constand. A Pennsylvania court judge ruled that Cosby’s trial would begin on June 5.

The trial is slated to last two weeks, according to NBC NewsAn anonymous jury will be gathered from Pittsburgh residents. 

RELATED: California Ends Statute of Limitations For Rape Following Bill Cosby Case

Bill Cosby’s Team Fights to Dismiss His “Jokes”

Cosby’s legal team met in court on Monday to iron out last minute details about his case. For example, they were hoping the judge would rule an old joke about using “Spanish fly” to take advantage of women would be ruled inadmissible.

Cosby’s defense took the lazy defense of it’s just jokes while prosecution argued that it showed Cosby had a propensity towards offering women Quaaludes in order to put them to sleep. However, the judge didn’t rule on the joke ad there’s still a chance it could be brought up to the jury during proceedings.

To date, more than 50 women have come forward to accuse Cosby of drugging and raping them over a span of five decades. Most of their accusations fall outside of the statute of limitations and won’t see a court room.