Student (F and M) visas for new students can be issued up to 120 days in advance of the start date for a course of study. Waiting times to for your visa appointment vary wildly between countries. You could get it in 3 days or in 3 months, depending on the case.