I can't see anything in the Surrogate's Court Procedures that specifies a time limit for submitting a will and opening probate. But, generally, the sooner the better.
After someone has died, "filing the will" generally refers to submitting the will to the court and applying to open probate.