Loading
Salesforce Enforces New Security Requirements in Summer 2026Read More
Extend Salesforce with Clicks, Not Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          YEAR

          YEAR

          Returns the four-digit year in number format of a given date.

          Use

          YEAR(date) and replace date with the field or expression that contains the year you want returned.

          Formula Example
          Formula Example

          YEAR(TODAY())- YEAR(Initial_Meeting__c) returns the number of years since your initial meeting with a client. This example uses a custom date field called Initial Meeting.

           
          Loading
          Salesforce Help | Article