If stored correctly, distilled water will stay pure indefinitely. You should put it in a clean and tightly sealed glass container.  An opened bottle of distilled water can last for 9-12 months, depending on how it is stored.