Complex sentence: He was with them from 1900--1902, when he was gazetted into the regular army.
Split into simpler sentences: He was with them from 1900-1902. In 1902 he was gazetted into the regular army.