I'll be visiting Japan soon and I'll be meeting a friend there. 

I was wondering if the etiquette there was to give a gift when you first arrive or when you'll be leaving.

When should I give the *omiyage*?