Good morning supermom. I was in a Prepper forum that is in Switzerland. You cannot build a new house there without an architect, or without your own bunker in the cellar or directly nearby...One of the members had reported that he and his family took a 3 week vacation and "lived" in their bunker. Just to see how it is stuck with each other 24/7. Chemo toilet, cold showers, canned food, gas cooker, etc. Reality show in reality. BUT! You cannot simulate the fear, danger and unknown of what is still out
there waiting for you to come back out...
Anyway, back to your question. He had also set up the same question in the forum and had taken a 5 gallon container filled with about 1 weeks food, sealed it with tape and let it stand in his bunker for !!5 years!! Then he took it to a friend working in a food control lab and had all checked for edibility. All the expiration dates were 5 years over. Flour, peanutbutter, chocolate, powered milk and eggs, etc. ALL was still quite edible. The cookies with chocolate were a bit soft and smelled old, but edible.
The food companies put the dates on there for two reasons. If it is eaten too late and it is not good, you cannot sue them...and they want you to finally eat it (AND BUY MORE). I have read stories of C-rations from the second world war found and still edible.
I have kept butter in the freezer for 7 years over date and it was fine, flour; 2 years, chocolate 3 years, peanut butter, 4 years.
Keep it: 1. DRY 2. DARK 3. COOL 4. SEALED 5. OXYGEN FREE if loosely packed.