day-from-date function
The fn:day-from-date function returns the day component of an xs:date value.
Syntax
- date-value
- The date value from which the day component is to be extracted.
date-value is of type xs:date, or is an empty sequence.
Returned value
If date-value is of type xs:date, the returned value is of type xs:integer, and the value is between 1 and 31, inclusive. The value is the day component of date-value.
If date-value is an empty sequence, the returned value is an empty sequence.
Example
The following function returns the day component of the date value for June 1, 2005.
fn:day-from-date(xs:date("2005-06-01"))The returned value is 1.
