---
schema_version: "1"
id: 4d815c65c529473d912b6f3c5247155d9b818db50d033af1cd9f548d3d5819e4
title: YEAR
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_year.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_year.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 24a3d8ab5e7f949c7e9f6deb0d7f3d5cecd778eb013b4d33673df2f1ea82db19
description: Returns the four-digit year in number format of a given date.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# 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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

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.