---
schema_version: "1"
id: 3a32f89309fc0554c6121fdb41fc95b71bd30bb4ccfc536a502ee2da5294d7ab
title: WEEKDAY
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_weekday.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_weekday.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: fa26e99c6e78567a7df6f2ca134325902828db595b5d9f0a30aaa50090903fdb
description: Returns the day of the week for the given date, using 1 for Sunday, 2 for Monday, through 7 for Saturday.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# WEEKDAY

Returns the day of the week for the given date, using 1 for Sunday, 2 for Monday, through 7 for Saturday.

## Use

`WEEKDAY(date)`

![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

`WEEKDAY(customdate1__c)` returns the day of the week for the given date in customdate1\_\_c