WWII was September 1, 1939 to August 12 or so, 1945.
And besides, comparing American involvement in Iraq to American involvement in World War II simply based on the amount of time in the war is absurd. We lost hundreds of thousands in World War II and about 3,200 in Iraq.