I’d rather recommended only buying bottles of olive oil with printed harvest dates on the bottle within the last year. It’s absurd that stores are selling two year old oil. There’s a real problem with grocery stores having too many options for a single product and then most of the product on the shelves is unacceptably old.
See also: coffee.
We could have better food with fewer preservatives and less processing if the supply chain would pay attention to this problem.
If you buy directly from a roaster they'll always tell you the roasting date, but most supermarkets actively forbid them from putting that on the bags sold there.