# YEAR() Function

### Description

Extracts the year from a date or timestamp

### Syntax

```sql
YEAR(date)
```

### Parameters

| Parameter | Description | Required |
| --- | --- | --- |
| _date_ | The date to return the year index from; A date, datetime, or timestamp | Yes |

### Example

```sql
SELECT YEAR(start_date)
FROM rippling.employee.Employee;
```

Source: https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference/year

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
