Spring '18 (API version 42.0)
Newer Version Available
To combine the year, month, and day into a value that’s called CreatedDate:
q = foreach q generate Id as Id, Year + "-" + Month + "-" + Day as CreatedDate;