something more like
str(year(datetime_field)) + str(month(datetime_field))
should give you what you want.
The str function converts your numeric data into a string, setting + as the string concatenation operation instead of the arithmetic add operation.
source share