Beans go stale about two weeks after roasting.
Grounds go stale about twenty minutes after grinding.
(, Tue 12 May 2009, 16:18, archived)
The refrigerator is the mortal enemy of your coffee. Taking coffee in and out of the fridge is a sure way to suck the flavor right out of it. Coffee that will be used frequently and immediately—whole bean or ground— is ideally stored in an air tight, opaque,and glass or otherwise inert container. Coffee that will not be consumed immediately but needs to be preserved for near-future use can be safely stored in the freezer assuming it is stored in a dry and air tight container. Storing an unsealed container of grounds or beans in the cold temperatures of either the fridge or freezer is a sure way to accelerate the its journey from delicious flavor to stale bitterness
(, Tue 12 May 2009, 16:23, archived)