Dark chocolate lasts the longest, up to two years. People might see a white coating on the dark chocolate when it's older, which is called “bloom.” Bloom is not harmful and it's safe to eat. Hard candy like lollipops can last up to a year when stored at room temperature or in a cool, dry location.