Description
The fn:year-from-date function returns the year portion of an xs:date value, as an integer.
This description is © Copyright 2007, Priscilla Walmsley. It is excerpted from the book XQuery by Priscilla Walmsley, O'Reilly, 2007. For a complete explanation of this function, please refer to Appendix A of the book. Arguments and Return TypeName | Type |
$arg |
xs:date? |
return value |
xs:integer? |
ExamplesXPath Example | Results |
---|
year-from-date(xs:date('2006-08-15')) |
2006 |
See AlsoHistory |
Recommended Reading:
|