If you happen to greet your friend at 11pm, you should say_
If you happen to greet your friend at 11pm, you should say_ Correct Answer Good evening!
If you are parting and going your ways, yes you should say good night as that ends your conversation.But if you have just met the person at 11pm, a good evening or just a Hi! could do.