The field('DATE') function returns a date object and needs to be converted to a string with to_s before you can apply string functions to it:
field('DATE').to_s.split('-')[1]
The field('DATE') function returns a date object and needs to be converted to a string with to_s before you can apply string functions to it:
field('DATE').to_s.split('-')[1]