From Trading to AFS Security

What happens when you have unrealized gains/loss's on AFS securities for year one and year two, and in year two you change over to trading. Do you take the unrealized gains/losses from year one and two and recognize that in current income? or just from year two...Thanks.