Saxonica.com

fn:year-from-date

fn:year-from-date( date? $srcval) → integer?

Function signature

$srcval

xs:date ?

Result

xs:integer ?

Extracts the year component of a date value

XPath 2.0 Specification

Next