Don't rely on store staff to catch these for you - I learned that the hard way when I grabbed yogurt that turned out to be two days from expiration despite the worker restocking it that morning. The real issue is that manufacturers use wildly different formats, sizes, and ink quality, so there's no single trick that works everywhere.
Your best bet is to physically inspect items before checkout rather than trusting what you see on the shelf. Rotate products toward the front when you're browsing (older stock in the back), tilt the package under good light to read faded text, and feel for embossed dates if the printing is too faint. For items you buy regularly, learn where that particular brand puts its date - some hide them on the side panel, others on the bottom. If you genuinely can't read it in the store, snap a photo with your phone's flash to zoom in at home before opening it.
As for apps, there are barcode scanners that pull up product info, but they won't help with the physical date code on your specific package - they just tell you what the product is. Your phone's built-in magnifying glass or a simple flashlight works better than any app here. The real solution is just being methodical: take an extra 20 seconds per item to hunt down and read that date before it hits your cart. It beats the frustration of discovering expired stuff at home.