we can use再见or拜拜(bye-bye) when we say goodbye at anytime. when you want to say "Have a good day!", we can say like this 再见,祝你天天快乐。if is a weekend,再见,祝你周末快乐。if is a festival day,we say再见,祝你节日快乐。(just plus something like good wishes you want to give)
we use晚安 before we go to bed. if early that night, we do not use it. you still can use 再见or拜拜(bye-bye)like the examples I gave before.