If kept tightly sealed and not exposed to extreme variations in temperature, modern,
well formulated, paints are stable for remarkable periods of time. I have previously opened, but very carefully kept, bottles of Tamiya that are over twenty years old. Whether MM paints are that stable I have no way of knowing, since I don't use them, and the oldest bottles of them that I have are only five to seven years old. Enamels can be even more stableāI have two perfectly good tins of Humbrol that date from 1972.
There may be a code on the bottle, but good luck deciphering it. You could try to find a history of label changes, but that would only be pretty general.
Rattle cans are another story. While some may last for decades, I wouldn't count on it. This is because the reducer and propellants used are not always as compatible with the resins as the solvents used to dissolve them, and because rattle cans are not nearly as tightly sealed as a glass bottle or metal tin.