 From 1823 to 1845, the secretary was elected by joint ballot of the New York State Legislature for a term of three years.From 1847 on, the secretary and the other state cabinet officers were elected by the voters at the state elections in November in odd years to a two-year term, so that, until 1877, they served in the second half of the term of the governor in office and the first half of the term of the succeeding governor, since the governors at the time were elected to a two-year term in even years.From 1877 on, the governor served a three-year term, while the secretary continued to be elected for two years.