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.
Parameters |
Description |
---|---|
arg:date() |
Examples
XPath |
Results |
---|---|
year-from-date(xs:date(‘2006-08-15’)) |
2006 |