Formal:
* Желаю вам приятного вечера! (Zhelayu vam priyatnogo vechera!) - This literally translates to "I wish you a pleasant evening!" and is the most formal option.
Informal:
* Веселитесь! (Veselitis!) - This is a straightforward "Have fun!"
* Хорошего вечера! (Horoshego vechera!) - This translates to "Have a good evening!" and is a more common way to say "have fun" in informal settings.
* Отлично проведите время! (Otlichno provedite vremya!) - This means "Have a great time!" and is another informal option.
To a friend:
* Хорошо повеселитесь! (Horosho poveselites!) - This means "Have a good time!" and is more casual than "Have fun."
The best option depends on the context and your relationship with the person you are speaking to.