According to the USDA, eggs may be good within three to five weeks from your purchase date and certain canned good, such as soup and green beans – can be good unopened on the shelf for up to five years.