How Long was the War of 1812?

The War of 1812 lasted about three years. The war started on June 18, 1812 and ended on March 23, 1815. The war was between the United States and the British Empire.