Regarding expired items:
Check with your local food pantry. We have volunteered for our pantry annually for many years. (It’s a wonderful town event, kids earn volunteer hours, alums come home to help, folks put groceries on their doorsteps for the younger folk to collect & bring to the community sorting area - to be sorted, boxed & driven to the pantry by folks who own trucks & trailers.)
It’s an all around “feel good/do good event and every year it just gets more fruitful!
Anyway, when it first started, we used to discard all items that were stamped as expired. But for the past couple of years, we’ve been told to not discard any canned item past it’s expiry date.
Food donations have seen sharp declines along with equally sharp increases of families who need help.
Our pantry has said that recent studies have indicated that many items are perfectly fine after their dates. They have a second sorting in the actual pantry warehouse where they do a thorough sorting and feel that the amount of viable food obtained through that extra step has fed hundreds more than if we had just continued tossing by date alone.
Also, they are grateful for any new, unopened item - they appreciate generic & non-generic equally. If it matters morally to you, two boxes of generic feed more people than one box of branded.
Finally, when donating, remember gluten sensitive individuals as well as folks who might have diabetic or low sodium needs. (These items are specially sorted because they are in such high demand, tend to be more expensive and are less frequently donated.)
—————
Edited to highlight canned items.
Flour based packages are typically not as shelf stable as cans/jars.