Often, when I'm feeling like I wasn't productive, it's when I'm focusing on the things that I've yet to do, rather than the things that I've done.

Shifting my focus to what I've actually accomplished on a given day can be very helpful.