Investors & landlords

How did you buy a stock in December of 2019 but sell it in January of 2019? Look at the dates again closely on the 1099 - b.