The less oxygen they're exposed to the better. A vacuum sealed bag is good, a bucket with a very tight lid is ok, a paper bag is poor, generally. With grains, you'll not see the deterioration to anywhere near the effect hops see.
I've brewed with crushed grains as old as the other poster here and hit my gravities and had no weird flavors too. Grains are much much more forgiving than hops.