how long is a prescription good for
Schedule III and IV medications (such as Vicodin and Xanax) are often valid for 180 days, while prescriptions for Schedule V and VI drugs (sleep aids and anti-diarrheal medications) may be good for up to 12 months due to their lower risk for dependency.