Description
The fn:year-from-dateTime function returns the year portion of an xs:dateTime 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 Type| Name | Type |
$arg |
xs:dateTime? |
| return value |
xs:integer? |
Examples| XQuery Example | Results |
|---|
year-from-dateTime(
xs:dateTime('2006-08-15T10:30:23')) |
2006 |
See AlsoHistory |
Recommended Reading: 
|