The Agfa APX film is labeled with an expiriy date 5 years after manufacture, and it has excellent keeping qualities, which is why they could do that. This is with storage at room temperature. I am sure it will keep a long time after that if kept cool or frozen. The film was manufactured in fairly large quantity to customer orders before they shut down the coating line. Unfortunately, the customer (distributor) didn't order 120 film, ony 135.
Amateur color film was dated 3 years after manufacture, and the freshest I have seen is dated 01/2009. It was also manufactured to order before the shutdown.
Professional color film is dated even shorter (2 years). It was guaranteed to be 1/6 of an f-stop within spec. The final Agfa professional color film (RSX, Optima, XPS) will expire end of this year.