there is a pretty simple method to sort that - assuming you aren't trying to store more than a years worth of food. select shelf stable foods. Eat the oldest and rotate the newest into your pantry.
-
the 'best by' and 'use by' dates are a marketing/nutritional thing referring to texture, taste and nutrition.
there are alot of things that can affect shelf life. so you need to adjust fire accordingly.
I have salt in my pantry - expired - i check the packaging and make sure its in good shape. Salt wont go 'stale' or bad over time. but if the packaging gets damaged or wet or contaminated, its time to replace it.
- this is regular iodized and non iodized and mineral salt, not flavoring salt. (not like onion or garlic salt).
peanut butter is a different animal. the fats in the mix will make it break down faster over time. even if you store it perfectly, the slow breakdown of the oils will continue. There will be variations by brand (think manufacturing method and mix and packaging). So rotate your stock.
i did try powdered PB - there are posts about this. One note about powdered PB, there isn't much fat (oil) in that mix and this adds to the shelf life but removes one of its important nutritional components.