When Did Canada Become Independent?

Canadian confederation happened on July 1, 1867, however this was not a declaration of independence as Canada was part of the Commomwealth under the monarchy of Great Britain. There was a repatriotism of the Constitution in 1982, but Canada remains a constitutional monarchy, though for all practical purposes it functions as an autonomous country.