It takes 2 working days to process a visa online application. Therefore, you need to do it at least 3 days before your trip to Vietnam. However, for proper preparation, you should apply it sooner. It is recommended to apply for a visa from 1 month to 6 months before the arrival date.