---
schema_version: "1"
id: 982f001029ee48350948ae7d0b73a08dd923099497ebedc0bf01832cbec34c06
title: DATE
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_date.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_date.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 407ad1943575705e5df33783ba02e9e67f4d8e390f77a6d4c52848104ee6f7a6
description: Returns a date value from the year, month, and day values you enter. Salesforce displays an error on the detail page if the value of the DATE function in a formula field is an invalid date, such as February 29 in a non-leap year.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# DATE

Returns a date value from the year, month, and day values you enter. Salesforce displays an error on the detail page if the value of the DATE function in a formula field is an invalid date, such as February 29 in a non-leap year.

## Use

`DATE(year,month,day)` and replace year with a four-digit year, month with a two-digit month, and day with a two-digit day.

![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 `DATE(2005, 01, 02)` creates a date field of January 2, 2005.