As long as the ammo has not been exposed to extremes of temperature, particularly heat, and has not been exposed to environmental issues like being under water or in oil or a corrosive atmosphere, it should last many many years.
Canisters of powder for reloading, on the other hand, DO have a much shorter shelf life, perhaps a couple or 3 years. They become more volatile as they age and should not be used for reloading. Use it to start your fireplace, bbq charcoal or camp fires.
Spread it on a sheet of news paper on the fire grate and put your kindling/logs/charcoal on top of it and light a corner of the paper....and stand back a foot or two...no explosion, but a nice flare up.