We recommend that you start preparing your application around two months before you intend to apply. The earliest you can apply for a Student visa from outside the UK is six months before the start date on your CAS, or three months if you are inside the UK.