I would have been happy to have waited till I was in my mid- to late-30s before I got married, but you don't choose when these things happen, and when they do, there's no doubt in your mind.
It's much easier to write when you're sad. But you can end up isolated and depressed because you almost need to put yourself in that situation to have that angst to write from.