By the way, there is a recipe for getting year + month from a date here: Recipe for getting Months and Quarters from dates