The UAE requires that you are within 58 days of your intended arrival before you apply. However, you can apply with iVisa at any time, as we will review your application for accuracy, and queue your order until it's the appropriate time to process your request. 

Additionally, the latest you can apply is 24 hours before departure.