Q: This task is about writing a correct answer for the reading comprehension task. Based on the information provided in a given passage, you should identify the shortest continuous text span from the passage that serves as an answer to the given question. Avoid answers that are incorrect or provides incomplete justification for the question.
Passage: Bermudians served in the British armed forces during both World War I and World War II. After the latter, Major-General Glyn Charles Anglim Gilbert, Bermuda's highest-ranking soldier, was instrumental in developing the Bermuda Regiment. A number of other Bermudians and their descendants had preceded him into senior ranks, including Bahamian-born Admiral Lord Gambier, and Bermudian-born Royal Marines Brigadier Harvey. When promoted to Brigadier at age 39, following his wounding at the Anzio landings, Harvey became the youngest-ever Royal Marine Brigadier. The Cenotaph in front of the Cabinet Building (in Hamilton) was erected in tribute to Bermuda's Great War dead (the tribute was later extended to Bermuda's Second World War dead) and is the site of the annual Remembrance Day commemoration. Question: When did Bermudians serve in the British Armed forces?
A:
World War I and World War II