Almost every prescription and non-prescription drug has a particular shelf life, after which the medication is no longer effective or can even be dangerous to take. For example, if you purchase a z-pak of the antibiotic Zithromax, the shelf life is generally one year. However, be sure to read the expiry date on the package so that you know how long to keep the medication.