Deductions & credits

I bought the house in 2011. Just to confirm, I enter the date I bought it in 2011 and not the date that my buyer bought it from me in 2021? 
this is the income section/ selling a house. Thanks.