When was France defeated by Germany in World War 2?

France gave up in 1940.