N.Y. Criminal Procedure Law § 170.20
2. At any time before entry of a plea of guilty to or commencement of a trial of an accusatory instrument specified in subdivision one, the district attorney may apply for an adjournment of the proceedings in the local criminal court upon the ground that he intends to present the misdemeanor charge in question to a grand jury with a view to prosecuting it by indictment in a superior court. In such case, the local criminal court must adjourn the proceedings to a date which affords the district attorney reasonable opportunity to pursue such action, and may subsequently grant such further adjournments for that purpose as are reasonable under the circumstances. Following the granting of such adjournment or adjournments, the proceedings must be as follows: