If you're a chocolate-lover, you probably won't have any issues consuming it before it goes bad. On the other hand, if you tend to buy a bar only on rare occasions, keep in mind that it will stay good for up to 2 years. Of course, the flavor will be less intense, but you can use the chocolate in desserts and other sweet treats.