Stored in a cool place away from sunlight, much more than 2-years. Stored in a freezer, maybe indefinite.
Others may disagree. But, two years properly stored is certainly too conservative.
Some flavors probably react differently, especially under less than ideal conditions. But, unflavored nic liquid, properly stored, seems to be indestructible.