<Tr> <Th> War </Th> <Th> Declaration </Th> <Th> Opponent (s) </Th> <Th> Date of declaration </Th> <Th_colspan="2"> Votes </Th> <Th> President </Th> <Th> Result </Th> </Tr> <Tr> <Th> Senate </Th> <Th> House </Th> </Tr> <Tr> <Td> War of 1812 </Td> <Td> Declaration of War upon the U.K. </Td> <Td> United Kingdom </Td> <Td> June 18, 1812 </Td> <Td> 19--13 </Td> <Td> 79--49 </Td> <Td> James Madison </Td> <Td> Treaty of Ghent (December 24, 1814) </Td> </Tr> <Tr> <Td> Mexican--American War </Td> <Td> "An Act providing for the Prosecution of the existing War between the United States and the Republic of Mexico ." </Td> <Td> Mexico <P> Mexico </P> </Td> <Td> May 13, 1846 </Td> <Td> 40--2 </Td> <Td> 173--14 </Td> <Td> James K. Polk </Td> <Td> Treaty of Guadalupe Hidalgo (February 2, 1848) </Td> </Tr>

When did the united states declared war on north vietnam