Beans produced for supermarkets or chains use the “best before” because it is a relatively long time. The beans might not taste their best but they are safe to use.
Speciality roasters will print a roast date.
James Hoffman just made a video on exactly this topic: https://youtu.be/O9YnLFrM7Fs
Warning: once you start on his videos you may never return.