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.

Parameters

Description

arg:dateTime()

Examples

XPath

Results

year-from-dateTime(xs:dateTime(‘2006-08-15T10:30:23’))

2006

See Also