The judge in the sexual assault case of Bill Cosby said in a court order on Thursday that he was scheduling the retrial for Nov. 6 in Pennsylvania.

Last month the judge, Steven T. O’Neill, of the Montgomery County Court of Common Pleas, declared a mistrial after jurors reported that they were hopelessly deadlocked after six days of deliberations. Prosecutors immediately announced that they wanted to retry Mr. Cosby, and Andrea Constand — whose accusation that Mr. Cosby had sexually assaulted her is the heart of the case — agreed to take the stand again in Norristown, Pa., where the first trial took place.

The new date is not fixed in stone: If the first trial was any indication, the coming months will be filled with motions and countermotions as Mr. Cosby’s lawyers and the prosecution vie for an edge. That jockeying could affect the timing.

In his order, Judge O’Neill said that any pretrial hearings would be scheduled by separate order.

A Pennsylvania courts spokesman, James Koval, said the retrial must begin within one year of the declaration of the mistrial, June 17. Judge O’Neill would preside over the retrial, Mr. Koval said.