--- title: "year()" slug: "date-year" updated: 2026-08-13T09:05:29Z published: 2026-08-13T09:05:29Z canonical: "docs.lobstersoftware.com/date-year" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # year() This function returns the year of date **a**. ## Parameters | Parameter | Description | | --- | --- | | a | Date | ## Examples | Parameter a | Result | | --- | --- | | 2005-01-05 08:20:12 | 2005 | | 2005-01-05 | 2005 |