For the smoothest transition, you might start slowly shifting into your bond allocation 5 or 10 years before you are fully retired. Especially if you have a fixed date firmly in mind. But if you are flexible as to your retirement date and more risk tolerant, you might stay fully in stocks right up until you make the change. In doing so the stronger potential of stocks could get you there sooner. But if the market moves against you, you’ll have to be willing to push your retirement date back a bit.