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