When did Florida become a territory?

Florida became a territory on March 30, 1822. It was a territory until 1845 when it then became a state and was admitted to the union.