The Senate passed the war bill on June 17th in 1812 and the next day, President Madison signed it. This was an official declaration of the War of 1812.