# DAY

The DAY function extracts the day from an input date. The input date should be in MM/DD/YYYY format. Node references are also accepted as arguments.

## Syntax

```javascript
day(date)
```

## Arguments

date - The date which is passed as input to the function.&#x20;

## Return value

Date

## Example

```javascript
DAY('8/2/2023')
```

Returns 2.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FssclVgb939zStiqs3uWY%2Fimage.png?alt=media&#x26;token=d498e60c-259b-4439-af13-6c8374a2e2ac" alt=""><figcaption><p>Day function</p></figcaption></figure>
