Ideally, it should be consumed within a year, as it tastes the best then, and all the nutrition in it is preserved. You can actually consume it after a year too, but its taste, flavor, texture, and nutrition is greatly reduced after this. After 2 years, it should definitely not be consumed.