If you have a DateTime attribute in your entity, instead of using OQL, another approach would be to format it using the formatDateTime function.
formatDateTime($object/Birthday,'MMM')
https://docs.mendix.com/refguide/parse-and-format-date-function-calls/#3-formatdatetimeutc
Hope this helps.