Complex sentence: Switzerland was represented by a legation in Copenhagen from 1945 to 1957, when the mission was upgraded to an embassy.
Split into simpler sentences: Switzerland was represented by a legation in Copenhagen from 1945. In 1957 a mission was upgraded to an embassy.