When did the United States exit World War 2?

The Americans stayed until the end of the war, when they dropped two atomic bombs on Japan. The Allies accepted the Japanese surrender on the ship Missouri.