O'Dwyer enlisted in the US Army in 1941, and served until his military
retirement in 1945.
From the official New York City Web site:
"O'Dwyer built up a successful law practice and served as a Kings
County Court judge. He won election as the Kings County District
Attorney in 1939 and his prosecution of the organized crime syndicate,
Murder, Inc., made him a national celebrity as a tough crime fighter.
After losing the election to LaGuardia in 1941, O'Dwyer enlisted in
the Army, achieving the rank of brigadier general."
Elected Mayors of New York City
1946 - 1950 Mayor of New York
1950 - 1952 Ambassador to Mexico"
The Generals of WWII: Generals from USA
My Google search strategy:
Google Web Search: "william o'dwyer" mayor 1941
I hope this is precisely what you need to know. If anything is unclear
or incomplete, please request clarification; I'll gladly offer further
assistance before you rate my answer.