If you want to greet someone in Japanese by saying "good afternoon" or "good day," the word you want to use is Konnichiwa.
Konnichiwa is actually a shortened version of a full greeting. Over time, a more slang version of the term evolved in the Japanese language.