Through a statement. When a person arrives in Canada, they generally have to declare how many days they will be here. The customs officers use that statement to determine whether to apply a tax or not.
On May 16th, 2012. See this statement in context.