The intention of date coding is to give consumers a guide to that food’s shelf-life in terms of quality. So they know how long a food can be kept before it begins to deteriorate or becomes unsafe to consume. Retailers also require date code information on secondary packaging.