The answer to this question depends on a number of factors. The code dates on packages are for use at the supermarket and indicate how long the package should be displayed on the shelves.These dates have very little to do with whether the food is safe to consume.
When in doubt, trust your own sense of taste and smell.
But according to food safety experts, most spoiled foods, though unpalatable, aren’t particularly hazardous.” According to the USDA, up to 30 percent of food may be lost or wasted at the retail or consumer level.
One source of food waste arises from consumers or retailers throwing away wholesome food because of confusion about the meaning of dates displayed on the label.
Additionally, if a calendar date is shown, regulations require that a phrase explaining the meaning of the date be printed immediately adjacent to the date.
These phrases are “Sell-By”, “Use-By” and “Best if Used By (or Before).” Some manufacturers are better at following that requirement than others.