CPLR 320(a) — The defendant appears by serving an answer or a notice of appearance, or by making a motion which has the effect of extending the time to answer. An appearance shall be made within twenty days after service of the summons, except that if the summons was served on the defendant by delivering it to an official of the state authorized to receive service in his behalf or if it was served pursuant to section 303, subdivision two, three, four or five of section 308, or sections 313, 314 or 315, the appearance shall be made within thirty days after service is complete. If the complaint is not served with the summons, the time to appear may be extended as provided in subdivision (b) of section 3012.
Not covered here: service by mail with acknowledgment under CPLR 312-a, where the 20-day period runs from the date the signed acknowledgment is mailed back, and service on corporations and other entities under CPLR 311 or 311-a, which is generally 20 days for personal delivery. Also not covered: extensions by stipulation or court order, and a complaint served after the summons (CPLR 3012(b)).