> For the complete documentation index, see [llms.txt](https://docs.cascade.io/cascade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cascade.io/cascade/functions-and-expressions/functions/date-time/datepart.md).

# DATEPART

DATEPART( `date` , `date part`)

Returns the specified `date part` for the given date/time element or array of dates.

### Arguments

| Argument    | Description                             |
| ----------- | --------------------------------------- |
| `date`      | Date/time value(s)                      |
| `date part` | Part of the date/time objects to return |

### Output

`Date part` for each input `date`

### Example

{% embed url="<https://datawrapper.dwcdn.net/dmBQQ/1>" %}
