To ensure the freshness of eggs, check the dates on the egg packaging. Pay attention to both the pack date and the sell-by date. Eggs can generally be consumed up to five weeks past the pack date. If the egg has an unpleasant odor or shows signs of discoloration or unusual markings on the shell, it may indicate that the egg has gone bad. The “floating egg” test is not a reliable indicator of freshness.