text: In 1836 , he was elected by the New Hampshire General Court as a Democrat to the United States Senate , serving from March 4 , 1837 , to February 28 , 1842 , when he resigned .
simplified: In 1836 , he was elected by the New Hampshire General Court as a Democrat to the U.S Senate , serving from March 4 , 1837 , to February 28 , 1842 .