You can apply for your e-Visa any time before your travel. However, you are advised to create an e-Visa application at least 48 hours before your departure.