To that end, Congress passed the Selective Service Act, which Wilson signed into law on May 18, 1917. The act required all men in the U.S. between the ages of 21 and 30 to register for military service. ... By the end of World War I in November 1918, some 24 million men had registered under the Selective Service Act.