The following list contains the aircraft used by the Royal Danish Air Force or its predecessors, the Danish Army Air Corps and Royal Danish Naval Aviation. During the Nazi occupation from 1940 to 1945, Danish military aviation was prohibited. The aircraft currently in use are highlighted in blue.
The Nazi occupation mentioned lasted more than 6 years.
It's definitely incorrect because it said it lasted from 1940 to 1945, which is only five years. I don't think the system is good at calculating dates when the dates are mentioned in the text and then comparing that result to the question asked, it seems to get confused easily by those sorts of questions.