Zoe said:When is it appropriate to switch from こんにちは to こんばんは? One of my friends always seems to say the former no matter what time of night it is.
Many use こんにちは for first encounter of the day even if it is already late - I'd say it's pretty common, some do the same for おはよう and use it till it is almost dark.