fn:day-from-dateTime function
The fn:day-from-dateTime function returns the day component of an xs:dateTime value that is in its localized form.
Syntax
>>-fn:day-from-dateTime(dateTime-value)------------------------><
- dateTime-value
- The dateTime value from which the day component is to be extracted.
dateTime-value is of type xs:dateTime, or is an empty sequence.
Returned value
If dateTime-value is of type xs:dateTime, the returned value is of type xs:integer, and the value is between 1 and 31, inclusive. The value is the day component of dateTime-value.
If dateTime-value is an empty sequence, the returned value is an empty sequence.
Example
The following function returns the day component of the dateTime value for January 31, 2009 at 8:00 p.m. in the UTC+4 time zone.
fn:day-from-dateTime(xs:dateTime("2009-01-31T20:00:00+04:00"))
The returned value is 31.