These days, many people find it a bit stiff and formal. Much more common would be to say “schönen Tag,” polite to use with anyone, or “tschüss,” the more informal version.