This is a particularly useful phrase to know when filling out forms in Japanese.
Now this phrase is formal.
When it comes to using it in various social contexts, you should know that Konnichiwa can be used safely in all kinds of situations only between morning and evening; never early in the morning or late at night except for those involving very close friends.
O nomi mono wa ikaga deshou ka? How nice it is too see you! It can also be heard in and Eritrea, as well as in Israel, Sweden, Canada and the United States.