When did the flag become the flag of Canada?

The flag of Canada was officially adopted in 1965.