There isn't a strict rule about the age of a recommendation letter, but it's generally best to have a recent letter. If you have an older letter, consider asking the writer to update it with current information, including a new date and any recent achievements or experiences that could strengthen your application.