Food labels such as “sell by,” “use by” and “best by” have long been confused for expiration dates on grocery products, leading consumers to prematurely throw away perfectly safe and nutritious foods.