Three years, eight months and seven days
Britain declared war on Germany on 3 September 1939. Japan surrendered on 2 September 1945. That’s six years.