It became a border of German-occupied Europe from 1940 to 1945 (Denmark was still a country although under practical control by Germany).