---
schema_version: "1"
id: a845ef447a8157b50506f6b35ca8440a8072b361bc2d315c485491d9875d2486
title: DAY
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_day.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_day.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c5eb20f509969803f3ca4ade81880e1e4d2457b3579dc285ac4580d49778d171
description: Returns a day of the month in the form of a number from 1 through 31.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# DAY

Returns a day of the month in the form of a number from 1 through 31.

## Use

`DAY(date)` and replace date with a date field or value such as TODAY().

![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 `DAY(Code_Freeze__c)` returns the day in your custom code freeze date. Note this function doesn't work on date/time fields.