When did Kennedy take office as a New York Senator ?
Kennedy was United States Attorney General from January 1961 until September 3 , 1964 , when he resigned to run for election to the United States Senate .