You just need to match your gilt holdings in terms of maturity with your desired access date.

They are a valid alternative for fixed term deposits (and vastly more tax efficient for higher earners)