Complex sentence: McLarty was commissioned on 1 May 1918 as a 2nd Lieutenant and was promoted to Lieutenant on 1 August this was the rank he held until being discharged.
Split into simpler sentences: McLarty was commissioned on 1 May 1918 as a second lieutenant and was promoted to lieutenant on 1 August. This was the rank he held until being discharged.