> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/kalipso5/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/kalipso5/developing/form/expressions/functions/functions-descriptions/date-functions/year-1.md).

# Year

Kalipso - Form - Expressions - Functions - Functions Descriptions - Date Functions - Year

This Function returns a *\<string>*, which is the year of the specified **Date.**

### Parameters

* **Source Date** *\<string> -* Date to get the year from. This parameter must be in format YYYYMMDD.
* **Year Format** *\<numeric> -* Format of the value to return. The possible values for this parameter are:
  * 2 - YY
  * 4 - YYYY

### **Examples**

* *Example 1*

Year("20210301", 2)\
**Result** = 21

* *Example 2*

Year("20210301", 4)\
**Result** = 2021
