Title: Presidency of John Adams
Content:   The presidency of John Adams, began on March 4, 1797, when John Adams was inaugurated as the second president of the United States, and ended on March 4, 1801. Adams, who had served as vice president under George Washington, took office as president after winning the 1796 presidential election. The only member of the Federalist Party to ever serve as president, his presidency ended after a single term following his defeat in the 1800 presidential election. He was succeeded by Thomas Jefferson of the Democratic-Republican Party. When Adams entered office, the ongoing war between France and Great Britain was causing 
Title: Presidency of John Quincy Adams
Content:  The presidency of John Quincy Adams, began on March 4, 1825, when John Quincy Adams was inaugurated as President of the United States, and ended on March 4, 1829. Adams, the sixth United States president, took office following the 1824 presidential election, in which he and three other Democratic-Republicans—Henry Clay, William H. Crawford, and Andrew Jackson—sought the presidency. There was no preliminary party primary six months before the general election, as became the custom. No candidate won a majority of Electoral College votes, and so the United States House of Representatives chose the president in a contingent election. With the help of Clay, Adams was elected by the House, and Clay became Adams's Secretary of State. His presidency ended 
Title: Electoral history of John Quincy Adams
Content:  Adams contested his first election for House of Representatives in 1802, in which he narrowly lost to William Eustis. After his presidency, he contested the election for House of Representatives from Massachusetts's 11th congressional district. He won the election in a landslide, and wrote in his diary that "my election as President of the United States was not half so gratifying to my inmost soul. No election or appointment conferred upon me ever gave me so much pleasure." He was sworn in on December 5, 1831, and seven days later was appointed chairman of the Committee of Manufactures. He is the only President to be elected in House of Representatives after leaving office. He served nine post-presidential terms in Congress from 1830 until his death in 1848, usually voting in the minority. He supported the rechartering of the Bank of the United States, opposed the annexation of Texas and the war with Mexico.
Title: Inauguration of John Adams
Content:  The inauguration of John Adams as the second president of the United States was held on Saturday, March 4, 1797, in the House of Representatives Chamber of Congress Hall in Philadelphia, Pennsylvania. The inauguration marked the commencement of the only four-year term of John Adams as president and of Thomas Jefferson as vice president. The presidential oath of office was administered to John Adams by Chief Justice Oliver Ellsworth. Adams was the first president to receive the oath of office from a Chief Justice of the United States, and the first head of state to peacefully and legally succeed to office from a living predecessor since Louis I of Spain in 1724.
Title: John Adams
Content:  John Adams (October 30, 1735 – July 4, 1826) was an American statesman, attorney, diplomat, writer, and Founding Father who was the second president of the United States, serving from 1797 to 1801. Before his presidency, he was a leader of the American Revolution that achieved independence from Great Britain, and he served as the first vice president of the United States from 1789 to 1797. Adams was a dedicated diarist and regularly corresponded with many important figures in early American history, including his wife and adviser Abigail Adams and Thomas Jefferson. A lawyer and political activist prior to the revolution, Adams was devoted to the right to counsel 
Title: John Adams
Content:  Adams was sworn into office as the nation's second president on March 4, 1797, by Chief Justice Oliver Ellsworth. As president, he followed Washington's lead in using the presidency to exemplify republican values and civic virtue, and his service was free of scandal. Adams spent much of his term at his Massachusetts home Peacefield, preferring the quietness of domestic life to business at the capital. He ignored the political patronage and office-seekers which other officeholders utilized. Historians debate his decision to retain the members of Washington's cabinet in light of the cabinet's loyalty to Hamilton. The "Hamiltonians who surround him," 
Title: John J. Adams
Content:  John Joseph Adams (September 16, 1848 – February 16, 1919) was an American politician and a United States Congressman from New York State.
Title: John Adams (journalist)
Content:  In 1885, Adams was elected President of the Maine Press Association.
Title: Electoral history of John Quincy Adams
Content:  American politician John Quincy Adams served as President of the United States (1825–1829) and United States Secretary of State (1817–1825). Prior to being president, he had served as United States Senator from Massachusetts (1803–1808) and had diplomatic experience as United States Minister to United Kingdom (1815–1817), Russia (1809–1814), Prussia (1797–1801) and the Netherlands (1794–1797). After losing the 1828 presidential election, he served as a member of the U.S. House of Representatives from Massachusetts for 17 years. He is the only American president to be elected to the House of Representatives after leaving office.
Title: Presidency of John Quincy Adams
Content:  Adams in the contingent election. On February 9, 1825, Adams won the contingent election on the first ballot, taking 13 of the 24 state delegations. He was the second president elected by the House of Representatives, following Thomas Jefferson in the 1800 election. Adams won the House delegations of all the states in which he or Clay had won a majority of the electoral votes, as well as the delegations of Illinois, Louisiana, and Maryland. After the election, many of Jackson's supporters claimed that Adams and Clay had reached a "Corrupt Bargain" in which Adams promised Clay the position of Secretary of State in return for Clay's support.

Question: when was president john adams elected?
Answer: John Adams Presidential Campaign, 1796.