When did germany occupy Norway?

The occupation of Norway by Nazi Germany started with the German invasion of Norway on April 9, 1940 and lasted through May 8, 1945 .