Meat or dairy products will have a foul smell when they are bad, which is usually within a few days of expiration. Canned goods can, in some instances, last for decades if not dented or breached. Julian or code dated cans can usually be interpreted by a Google search.