When there is a new design for any banknote, which happens every now and then (new security features added and so on) the issuing authority usually puts and end date to the old version a few years into the future. Otherwise it becomes very hard for the central bank to know how much money they have in circulation, and also they don't get the full benefit of the new security features if a lot of "old" money circulates along side it. As an example, I don't think any of the paper money I have in my wallet is of a design that has been valid for 15 years, or will be valid in 15 years from now. I have lived through the retirement of at least 10 different designs over the last decade, and at least three denominations were removed entirely.
That said, the use of US dollars outside the US might not be too sensitive to changes. I remember german D-marks still being a thing in the balkans even after the germans themselves switched to Euro!