When did Florida become a part of the United States?

On March third of eighteen forty-five, it became the 27th US State in 1845. It was a U.S. territory before it became a state. The U.S. got it from Spain in 1821 with the Adams-Onis Treaty.