With the exception of baby formula, the presence of that best-by date on canned foods is totally optionalalthough the government does issue suggestions for how long of a shelf-life manufacturers may want to recommend, depending on what’s inside each can.