Hammett enlisted in the United States Army in 1918. He became ill with the Spanish flu and later got tuberculosis. He spent most of his time in the Army as a patient in Cushman Hospital, Tacoma, Washington. While there he met a nurse, Josephine Dolan, whom he later married.