I spent the whole day working on something that I thought I didn't have the skills for yet and that I would have to spend the whole week learning how to do, or ask someone else to do it.
At the end of the day I basically did it, and almost finished the main points of the project, only to find out that there may be a big issue that could mean most of what I did the whole day was pointless in terms of the project.
Then, at the very last minute, I thought of a completely different way to approach this whole project, which still means that most of what I did today may be a waste in terms of the project and work itself, but at least I learned that I can actually do the work, and at least I thought of another strategy to complete the goal.