Write Year Function

I want to know there is a Year function in CommCare in to order to extract part of a date field. If it is possible, please help me I need it. I want to extract a year from a date field.

You can use the format-date() function for this, which is documented in detail here: https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-format-date

Thanks Aliza for the support. It was very help to me.