A good way to keep track of dates i imagine would be to hang a Sharpie marker on some string in the pantry or whatever and date the packages as you buy and stock them.
That plus a spread sheet. ;-)