A University of Toronto study has indicated that you perform better at work if you are sad and cranky, and if your task is of the mundane type like paperwork or database filling.
On the other hand, if you want to be creative, you better move to Denmark. For, good mood still makes you more creative. (link)