* The war in Afghanistan lasted thirteen years and two months. Vietnam lasted ten years and two months. Iraq extended eight years and nine months. U.S. troops fought in World War II for three years and eight months. Both the Korean War and the Philippine-American War lasted three years and one month. The United States fought in World War I for just one year and seven months.