For me it depends. I'm still fairly new and trying to find good solutions to things, so some times I might get hardly anything done because I'm just thinking about what to do or trying various stuff to see how an idea ends up. But when I'm doing things I know I can spend more than 8 hours working productively.
On average it's probably less than 6 hours of actually writing code per day though.