If it's in a dumpster, it's there for a reason like it's expired or something. If it's there it's likely to make you sick or kill you so leave it where it lies, who knows what kinds of germs and bacteria it's picked up from being in there...gross.
10 years