Sometimes we can have awful days. Things don't go as expected and it can be a pretty downer that causes trouble all over.
So what to do? In my experience, nothing. Think a little, reflect but just leave the day in the past and tomorrow will be yet another day. A better one.
So if you're having a bad day, throw it away and start fresh.