0

How can I change data field (date type) to show only YEAR?

When I try to use FORMULA = YEAR(my_custom_date__c) it throws an error.

5

If the return type of the formula field is Text:

In order to see only the Year of a Date Field you will need to convert it into text. See the following:

TEXT(YEAR(My_Custom_Date__c))

If the return type of the formula field is Number:

YEAR(My_Custom_Date__c)
3
  • The Question asker will also have to change the type of their formula field from Date to Text – Derek F Aug 4 '16 at 20:05
  • Or use Number and remove TEXT(...). – Adrian Larson Aug 4 '16 at 20:19
  • I edited my answer. Thank you @AdrianLarson and Derek – cmmoutes13 Aug 4 '16 at 20:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.