I do the permanent marker of the date in a more conspicuous place than the factory stamp. I've recently come to love the green painter's tape for labels in my
workshop since it is eye-catching, so green tape might make it to the kitchen... There's something about actively doing this notation that helps in remembering.
Rotate your stock. Easier said than done, since "out-of-sight, out-of-mind" is something I struggle with... A physical system, like stocking shelves from behind and "fronting" the older stuff is a help. Some items we store in bins in the cabinet, and sorted by "use by date" so we can progress through.
Only "stock up" on staples/items you like and regularly use... Don't get enticed by sales, or multi-packs, or other aspirational purchases. The "unit price" on a rancid, half-full, family-sized jug of oil is higher than the small bottle that you will use up before the date.
"Take stock" or "Do an inventory" (physically) of what you have, maybe even save a shelf for "the next two weeks" where the aging items are "on deck" to get used up... and inform shopping lists for missing ingredients or recipes.
An app called "Any List" was recommended by a friend (an engineer). I have it on my phone, but not used it yet. It can integrate recipes, and shopping lists, and I think pantry stuff? (A quick look at their website showed a sample with "movies to watch" as a list, so seems plausible, right?)