Complex sentence: On 5 January 1804 he transferred to the 7th Foot as a lieutenant and on 3 May 1805 he transferred to the 23rd Foot as a captain.
Split into simpler sentences: On 5 January 1804 he transferred to the 7th Foot as a lieutenant. On 3 May 1805 he transferred to the 23rd Foot as a captain.