.. _year-from-date: ============== year-from-date ============== The year portion of a date Description ~~~~~~~~~~~ The fn:year-from-date function returns the year portion of an xs:date value, as an integer. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg:date() - Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - year-from-date(xs:date('2006-08-15')) - 2006 See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`year-from-dateTime`.