How long do magnets hold their magnetic strength?

If the magnets are not subjected to external magnetic fields high enough to cause demagnetization - and/or - elevated temperatures above the advertised maximum use temperature the field will remain at or near as received. This could be expected last for the life of the application.