---
title: "YEAR"
url: "https://help.formsfly.com/en/article/year"
language: "en"
last_updated: "2024-11-01T15:42:00.152Z"
---

# YEAR

Returns the year portion of the specified date value.

* * *

### Syntax

`YEAR(dateval)`

### Example

If mydatefield has value '2024-10-30 09:55:00', then:

```plaintext
YEAR({{mydatefield}})
```

returns: `2024`

### Related

[MONTH](https://help.formsfly.com/en/article/month)  
[DAY](https://help.formsfly.com/en/article/day)  
[HOUR](https://help.formsfly.com/en/article/hour)  
[MINUTE](https://help.formsfly.com/en/article/minute)  
[SECOND](https://help.formsfly.com/en/article/second)
