Thanks for the idea (and code!). We're looking at re-vamping all of our DateTime functionality across the product, so we'll keep these ideas in mind when those initiatives kick off.
Thanks for the suggestion. I did use this in a recent workflow. However, for anyone from Alteryx reading this, this is non-intuitive. '2014' implies that 2014 is a string and will be treated like a string, not an integer. I didn't try this when I was working it out on my own for that reason.