When did Florida become part of the US?

Florida became part of the US, as a territory in 1822 and became a state in 1845.