Pure vanilla extract has an indefinite shelf life, meaning it won't go bad. It's best to store it in a cool dark place or decant it into dark bottles. Imitation vanilla will have an expiration date on the box and is best used within 6-12 months, but it won't harm you to use it if it's only a month or two past its prime.