how to extract year from date and time with timezone

Certified Associate Developer

I have record which has " created on "field. I wanted to filter all records that is created for this year. But when I try to convert the created on field to year for comparison. It shows error. 

Expression evaluation error at function a!queryRecordType: Could not cast from Record Field to Date. Details: CastInvalidCould not cast from Record Field to Date. Details: CastInvalid

Any help is appreciated

  Discussion posts and replies are publicly visible